Skip to content

Commit

Permalink
fix bundler plugin for root level folders
Browse files Browse the repository at this point in the history
this fix allows _within-bundled-project() to properly pickup a Gemfile
within a root level folder (ie. /my_project)
  • Loading branch information
Jeff Wallace committed Jan 17, 2012
1 parent 1a0be15 commit 96265d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/bundler/bundler.plugin.zsh
Expand Up @@ -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
Expand Down

0 comments on commit 96265d2

Please sign in to comment.