Browse Source

Add missing quotes to within-bundler-project function

Marc Cornellà 11 years ago
parent
commit
340da08b9a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/bundler/bundler.plugin.zsh

+ 2 - 2
plugins/bundler/bundler.plugin.zsh

@@ -40,8 +40,8 @@ _bundler-installed() {
 }
 
 _within-bundled-project() {
-  local check_dir=$PWD
-  while [ $check_dir != "/" ]; do
+  local check_dir="$PWD"
+  while [ "$check_dir" != "/" ]; do
     [ -f "$check_dir/Gemfile" ] && return
     check_dir="$(dirname $check_dir)"
   done