SecondSonConsulting / Baseline

An MDM agnostic zero touch solution for macOS
MIT License
202 stars 24 forks source link

Restart feature prints errors to the log if the key is not included #9

Closed BigMacAdmin closed 1 year ago

BigMacAdmin commented 1 year ago
+/usr/local/Baseline/Baseline.sh:48> forceRestartSetting=+/usr/local/Baseline/Baseline.sh:48> /usr/libexec/PlistBuddy -c 'Print :Restart' '/Library/Managed Preferences/com.secondsonconsulting.baseline.plist'
Print: Entry, ":Restart", Does Not Exist
+/usr/local/Baseline/Baseline.sh:48> forceRestartSetting='' 
+/usr/local/Baseline/Baseline.sh:50> [ '=' false ']'
/usr/local/Baseline/Baseline.sh:50: parse error: condition expected: =
+/usr/local/Baseline/Baseline.sh:53> forceRestart=true 

Need to fix code here.

BigMacAdmin commented 1 year ago

Fixed in 1.2