Skip to content

Commit

Permalink
Quote variable definitions in case of disaster
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdaemon committed Jan 9, 2017
1 parent 0c6f803 commit 5be0cab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update-bundles.sh
Expand Up @@ -6,7 +6,7 @@
# (c) Alexandre Gauthier 2010-2011, All rights reserved
# Released under the MIT License.

GIT=$(which git)
GIT="$(which git)"

cat <<EOF
Vim pathogen git submodule update script
Expand All @@ -30,7 +30,7 @@ fi
echo "Everything's good. Checking for bundle updates..."

if $GIT submodule -q foreach "$GIT checkout -q master && $GIT pull -q" ; then
UC=$($GIT submodule status | grep "+" | wc -l | xargs)
UC="$($GIT submodule status | grep "+" | wc -l | xargs)"

if [[ $UC -gt 0 ]] ; then
echo -n -e "\n"
Expand Down

0 comments on commit 5be0cab

Please sign in to comment.