i have a script that creates a few scripts on the users computers.and one of the scripts seems to pull the variable out of the script. any idea how to fix this?
This is what i write:
#Creates the script that the Launchd will call to make the popup
echo "#!/bin/sh
SUSNOTE= softwareupdate -l | grep '*' -c
terminal-notifier -message 'There are several updates waiting for you in Self Service Click her to launch Self Service' -title ' $SUSNOTE Pending Updates' -activate com.jamfsoftware.selfservice -appIcon /.pVault/Spark.png " > /var/uits/UpdateWarningPopup.sh
but once the file is created on the users computer, the script looks like this:
#!/bin/sh
SUSNOTE= softwareupdate -l | grep '*' -c
terminal-notifier -message 'There are several updates waiting for you in Self Service Click her to launch Self Service' -title ' Pending Updates' -activate com.jamfsoftware.selfservice -appIcon /.pVault/Spark.png
I'm assuming that casper is trying to use the variable in some way.
Thoughts?