Hello
I have been using a basic script for the last year to set the Google Chrome AuthServerWhitelist. It's been working fine until recently when it has just stopped, script below. Can anyone see any issues here?
Thanks, Joe
currentUser=ls -l /dev/console | awk {' print $3 '}
open /Applications/Google Chrome.app
sleep 15
defaults write /Users/"$currentUser"/Library/Preferences/com.google.Chrome.plist AuthServerWhitelist ".*.com"
chown "$currentUser":staff /Users/"$currentUser"/Library/Preferences/com.google.Chrome.plist
exit 0
