From 1c06b09a6facae26e5de25f11ba84a62b368e2ac Mon Sep 17 00:00:00 2001
From: Lele Long <schemacs@gmail.com>
Date: Mon, 3 Nov 2014 00:06:24 +0800
Subject: [PATCH] Add quotes to avoid shell expansion

---
 tools/create-xcode-project.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/create-xcode-project.sh b/tools/create-xcode-project.sh
index 04eff22..72cbd57 100755
--- a/tools/create-xcode-project.sh
+++ b/tools/create-xcode-project.sh
@@ -41,10 +41,10 @@ try cp $TEMPLATESDIR/template-Info.plist $APPDIR/$APPID-Info.plist
 try cp -a $TEMPLATESDIR/template.xcodeproj $APPDIR/$APPID.xcodeproj
 
 echo "-> Customize templates"
-try find $APPDIR -type f -not -iname *.png -exec sed -i '' "s/##APPID##/$APPID/g" {} \;
-try find $APPDIR -type f -not -iname *.png -exec sed -i '' "s/##APPNAME##/$APPNAME/g" {} \;
-try find $APPDIR -type f -not -iname *.png -exec sed -i '' "s/##SDKVER##/$SDKVER/g" {} \;
-try find $APPDIR -type f -not -iname *.png -exec sed -i '' "s^##SRCDIR##^$SRCDIR^g" {} \;
+try find $APPDIR -type f -not -iname '*.png' -exec sed -i '' "s/##APPID##/$APPID/g" {} \;
+try find $APPDIR -type f -not -iname '*.png' -exec sed -i '' "s/##APPNAME##/$APPNAME/g" {} \;
+try find $APPDIR -type f -not -iname '*.png' -exec sed -i '' "s/##SDKVER##/$SDKVER/g" {} \;
+try find $APPDIR -type f -not -iname '*.png' -exec sed -i '' "s^##SRCDIR##^$SRCDIR^g" {} \;
 
 LC_CTYPE=$OLD_LC_CTYPE
 LANG=$OLD_LANG