does 1 know how execute below cmd through shell script?
#!/bin/sh username="xyz" defaultcmd=`defaults write com.apple.xcode pbxcustomtemplatemacrodefinitions "{ \"username\" = \"${username}\" ;}" `
where write com.apple.xcode
.plist file. above command works on terminal.
@shelter right - above command run without '...' , should not captured value in script. 1 thing need noted script should not run "root" user otherwise command have no effect.
defaults write com.apple.xcode pbxcustomtemplatemacrodefinitions "{ \"username\" = \"${username}\" ;}"
Comments
Post a Comment