so I am trying to copy keys from one plist to another, and the following command works well from the command line:
whereas the following post-install shell script does not?
I get the following error:
can anyone tell me what I am doing wrong?

thanks in advance.
Code:
defaults write com.sweetpproductions.SafariCookies `defaults read com.apple.Safari SCautomaticMode`
whereas the following post-install shell script does not?
Code:
#!/bin/sh
# remove unneeded defaults
#find all users
for arg in `ls /Users`
do
#copy preferences for all users, if it exists - ignoring the Shared folder
if [ $arg != 'Shared' ]; then
/usr/bin/su $arg -c "/usr/bin/defaults write com.sweetpproductions.SafariCookie `/usr/bin/defaults read com.apple.Safari SCautomaticMode`"
fi
done
exit 0
I get the following error:
Code:
22/09/10 7:55:48 AM defaults[895]
Rep argument is not a dictionary
Defaults have not been changed.
can anyone tell me what I am doing wrong?
thanks in advance.