Skip to content

Commit

Permalink
1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Macjutsu committed May 20, 2022
1 parent 5ab69f4 commit a99cbc2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## [1.1]

2022-05-20

- Resolved missing code that prevented the `PreferJamf` managed preference key from being respected.
- The `--prefer-jamf` option will now result in an exit error if run from a computer with no Jamf binary.

## [1.1b2]

2022-05-16
Expand Down
22 changes: 18 additions & 4 deletions super
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# S.U.P.E.R.M.A.N. optimizes the macOS software update experience.
# by Kevin M. White
#
# Version 1.1b2
# 2022/05/16
# Version 1.1
# 2022/05/20
# https://github.com/Macjutsu/super
#
######## DEBUGGING STUFF ########
Expand All @@ -26,8 +26,8 @@ echo "
S.U.P.E.R.M.A.N.
Software Update Policy Enforcement (with) Recursive Messaging And Notification
Version 1.1b2
2022/05/16
Version 1.1
2022/05/20
https://github.com/Macjutsu/super
Usage:
Expand Down Expand Up @@ -973,6 +973,20 @@ elif [[ -n $iconSizeJamfOPTION ]] && ! [[ $iconSizeJamfOPTION =~ $regexNUMBER ]]
sendToLog "Exit: The Ibm Notifier icon size must only be a number."; parameterERROR="TRUE"
fi

# Manage $preferJamfOPTION and save to $superPLIST.
if [[ -n $preferJamfOPTION ]]; then
if [[ $preferJamfOPTION -eq 1 ]] || [[ "$preferJamfOPTION" == "TRUE" ]]; then
if [[ "$jamfVERSION" != "FALSE" ]]; then
preferJamfOPTION="TRUE"
else
sendToLog "Exit: No local Jamf binary detected, thus can not prefer jamfHelper."; parameterERROR="TRUE"
fi
else
preferJamfOPTION="FALSE"
fi
defaults write "$superPLIST" PreferJamf -bool "$preferJamfOPTION"
fi

# Validate $focusDeadlineOPTION, if valid set $focusDEADLINE, $focusEPOCH, $focusDATE, $focusTIME, $focusDEADLINE, and $focusDISPLAY.
if [[ "$focusDeadlineOPTION" == "X" ]]; then
sendToLog "Starter: Deleting local preference for Focus deadline."
Expand Down

0 comments on commit a99cbc2

Please sign in to comment.