Browse files

add quotes to variable assignment

+ move it to top of file
  • Loading branch information...
1 parent 91b30af commit b05fab00257804dd4f706bacbb6c70603d74bb43 @diederich diederich committed Apr 25, 2013
Showing with 6 additions and 6 deletions.
  1. +5 −5 scripts/update_libgit2.sh
  2. +1 −1 scripts/update_libgit2_ios.sh
View
10 scripts/update_libgit2.sh
@@ -1,15 +1,15 @@
set -e
+# augment path to help it find cmake installed in /usr/local/bin,
+# e.g. via brew. Xcode's Run Script phase doesn't seem to honor
+# ~/.MacOSX/environemnt.plist
+PATH="/usr/local/bin:$PATH"
+
if [ "libgit2.a" -nt "libgit2" ]
then
echo "No update needed."
exit 0
fi
-# augment path to help it find cmake installed in /usr/local/bin,
-# e.g. via brew. Xcode's Run Script phase doesn't seem to honor
-# ~/.MacOSX/environemnt.plist
-PATH=/usr/local/bin:$PATH
-
cd "libgit2"
View
2 scripts/update_libgit2_ios.sh
@@ -3,7 +3,7 @@ set -e
# augment path to help it find cmake installed in /usr/local/bin,
# e.g. via brew. Xcode's Run Script phase doesn't seem to honor
# ~/.MacOSX/environemnt.plist
-PATH=/usr/local/bin:$PATH
+PATH="/usr/local/bin:$PATH"
if [ "libgit2-ios.a" -nt "libgit2" ]
then

0 comments on commit b05fab0

Please sign in to comment.