I'm pushing a script to change firefox settings that uses as a wildcard. When I run the script locally, the script executes with no issues. When I push from Casper, it doesn't recognize as a wildcard. See script below.
I'm using a * because the profile names are randomized for Firefox. For example, mine is 71jal12.default.
!/bin/sh
currentuser=stat -f "%Su" /dev/console
Modify Firefox settings
echo user_pref("network.automatic-ntlm-auth.trusted-uris", "iwa.com"); >> /Users/$currentuser/Library/Application Support/Firefox/Profiles/.default/prefs.js
echo user_pref("network.negotiate-auth.trusted-uris", "iwa.com"); >> /Users/$currentuser/Library/Application Support/Firefox/Profiles/.default/prefs.js
Output from JAMF log -
/Users/bwong/Library/Application Support/Firefox/Profiles/.default/prefs.js: No such file or directory
/Library/Application Support/JAMF/tmp/enableSSOBrowsers: line 13: /Users/bwong/Library/Application Support/Firefox/Profiles/.default/prefs.js: No such file or directory