diff options
author | Jeff Wallace <jwallace@partnerpedia.com> | 2012-01-17 10:00:12 -0800 |
---|---|---|
committer | Jeff Wallace <jwallace@partnerpedia.com> | 2012-01-17 10:00:12 -0800 |
commit | 96265d26454868b8b654e4a5271939748e1dd148 (patch) | |
tree | 32f43fc191fa1ded827a71368eb8f56e353c652c | |
parent | 1a0be15d8c9c008eeeca57b820fe090fcbf9c59a (diff) | |
download | zsh-96265d26454868b8b654e4a5271939748e1dd148.tar.gz zsh-96265d26454868b8b654e4a5271939748e1dd148.tar.bz2 zsh-96265d26454868b8b654e4a5271939748e1dd148.zip |
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)
-rw-r--r-- | plugins/bundler/bundler.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh index 033f9cedf..b8f8ed3da 100644 --- a/plugins/bundler/bundler.plugin.zsh +++ b/plugins/bundler/bundler.plugin.zsh @@ -20,7 +20,7 @@ _bundler-installed() { _within-bundled-project() { local check_dir=$PWD - while [ "$(dirname $check_dir)" != "/" ]; do + while [ $check_dir != "/" ]; do [ -f "$check_dir/Gemfile" ] && return check_dir="$(dirname $check_dir)" done |