In my script to compile my program in XCode, I need to change the config file from
<string>${NAME}</string>
to <string>My New Name</string>
And after finish, redo this changes. So this line work:
cat $PLIST | sed "s/\${NAME}/${NEW_NAME}/" > $PLIST
--> Build my program
cat $PLIST | sed "s/${NEW_NAME}/\${NAME}/" > $PLIST
But, sometime my file $PLIST
is empty! And I don't know why. Is this a file protection? How can I force the file to be write?