ac910b85bd782ec7a033b67bab7be63785d063c2

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #845 from tjwallace/bundler_plugin_fix

Fix bundler plugin for root level folders

Diff

 1diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
 2index 74a3adaf895de280c2ef79016c455f9ae52f1ff1..96c6496640864983525061d994b65728e61f917a 100644
 3--- a/plugins/bundler/bundler.plugin.zsh
 4+++ b/plugins/bundler/bundler.plugin.zsh
 5@@ -16,7 +16,7 @@ _bundler-installed() {
 6 
 7 _within-bundled-project() {
 8   local check_dir=$PWD
 9-  while [ "$(dirname $check_dir)" != "/" ]; do
10+  while [ $check_dir != "/" ]; do
11     [ -f "$check_dir/Gemfile" ] && return
12     check_dir="$(dirname $check_dir)"
13   done