Browse Source

fix bundler plugin for root level folders

this fix allows _within-bundled-project() to properly pickup a Gemfile
within a root level folder (ie. /my_project)
Jeff Wallace 12 years ago
parent
commit
96265d2645
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/bundler/bundler.plugin.zsh

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

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