aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/xcode
diff options
context:
space:
mode:
authorGravatar Androbin <robin.richtsfeld@gmail.com>2017-11-29 01:31:47 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-11-29 01:33:24 -0800
commit9c78a79c02d38a98a38d852e10b16d8cb7a59c91 (patch)
treea9af77a8a9c2dc588705351d64941596bfc8b89f /src/tools/xcode
parentff62e1d0edf65d5103dde914db780f9c10371b92 (diff)
Various Shell Script Fixes and Improvements - Part One
see #4023 Closes #4051. PiperOrigin-RevId: 177279457
Diffstat (limited to 'src/tools/xcode')
-rwxr-xr-xsrc/tools/xcode/actoolwrapper/actoolwrapper.sh2
-rwxr-xr-xsrc/tools/xcode/environment/environment_plist.sh2
-rwxr-xr-xsrc/tools/xcode/ibtoolwrapper/ibtoolwrapper.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/xcode/actoolwrapper/actoolwrapper.sh b/src/tools/xcode/actoolwrapper/actoolwrapper.sh
index 1a55ac1a15..ddf7e43ad9 100755
--- a/src/tools/xcode/actoolwrapper/actoolwrapper.sh
+++ b/src/tools/xcode/actoolwrapper/actoolwrapper.sh
@@ -40,7 +40,7 @@ trap "rm -rf \"$TEMPDIR\"" EXIT
TOOLARGS=()
LASTARG=""
-for i in $@; do
+for i in "$@"; do
if [ "$LASTARG" = "--output-partial-info-plist" ]; then
touch "$i"
fi
diff --git a/src/tools/xcode/environment/environment_plist.sh b/src/tools/xcode/environment/environment_plist.sh
index 057a9c8cdc..c1b5d869c4 100755
--- a/src/tools/xcode/environment/environment_plist.sh
+++ b/src/tools/xcode/environment/environment_plist.sh
@@ -25,7 +25,7 @@
set -eu
-while [[ $# > 1 ]]
+while [[ $# -gt 1 ]]
do
key="$1"
diff --git a/src/tools/xcode/ibtoolwrapper/ibtoolwrapper.sh b/src/tools/xcode/ibtoolwrapper/ibtoolwrapper.sh
index be72527566..ca026745f6 100755
--- a/src/tools/xcode/ibtoolwrapper/ibtoolwrapper.sh
+++ b/src/tools/xcode/ibtoolwrapper/ibtoolwrapper.sh
@@ -56,7 +56,7 @@ TOOLARGS=()
# By default, have ibtool compile storyboards (to stay compatible with the
# native rules). If the command line includes "--link", we use it instead.
ACTION=--compile
-for i in $@; do
+for i in "$@"; do
if [ -e "$i" ]; then
if [[ "$i" == *.zip ]]; then
unzip -qq "$i" -d "$LINKDIR"