Browse code

Merge pull request #845 from tjwallace/bundler_plugin_fix

Fix bundler plugin for root level folders

Robby Russell authored on 22/01/2012 at 21:11:39
Showing 1 changed files
... ...
@@ -16,7 +16,7 @@ _bundler-installed() {
16 16
 
17 17
 _within-bundled-project() {
18 18
   local check_dir=$PWD
19
-  while [ "$(dirname $check_dir)" != "/" ]; do
19
+  while [ $check_dir != "/" ]; do
20 20
     [ -f "$check_dir/Gemfile" ] && return
21 21
     check_dir="$(dirname $check_dir)"
22 22
   done