Browse code

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 authored on 17/01/2012 at 18:00:12
Showing 1 changed files
... ...
@@ -20,7 +20,7 @@ _bundler-installed() {
20 20
 
21 21
 _within-bundled-project() {
22 22
   local check_dir=$PWD
23
-  while [ "$(dirname $check_dir)" != "/" ]; do
23
+  while [ $check_dir != "/" ]; do
24 24
     [ -f "$check_dir/Gemfile" ] && return
25 25
     check_dir="$(dirname $check_dir)"
26 26
   done