Skip to content

Commit

Permalink
Handle no pref being set
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamgilbert committed May 28, 2024
1 parent 5da29aa commit 22c351d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Crypt/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>5.0.1</string>
<string>5.0.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 2 additions & 0 deletions pkg/checkin/escrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ func getCommand(p pref.PrefInterface) (string, error) {
command = v
case []string:
command = strings.Join(v, " ")
case nil:
return "", nil
default:
return "", errors.New("PostRunCommand is neither a string nor an array of strings")
}
Expand Down

0 comments on commit 22c351d

Please sign in to comment.