Skip to content

Commit

Permalink
Wrap conditionals in quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Dec 11, 2012
1 parent c192e5e commit aed585f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ chmod +x boot.sh
if [ -r $BUILD_DIR/www/.slugignore ]; then
unset GIT_DIR
cd www
if [ $(git ls-files -z -o -i --exclude-from=.slugignore) != "" ]; then
if [ "$(git ls-files -z -o -i --exclude-from=.slugignore)" != "" ]; then
git ls-files -z -o -i --exclude-from=.slugignore | xargs -0 rm
fi
cd ..
Expand All @@ -79,7 +79,7 @@ if [ -d $BUILD_DIR/www/.git ]; then
rm -rf $BUILD_DIR/www/.git
fi

if [ $(find $BUILD_DIR -name .DS_Store -print0) != "" ]; then
if [ "$(find $BUILD_DIR -name .DS_Store -print0)" != "" ]; then
find $BUILD_DIR -name .DS_Store -print0 | xargs -0 rm
fi

Expand Down

0 comments on commit aed585f

Please sign in to comment.