Skip to content
Browse files

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)
  • Loading branch information...
1 parent 1a0be15 commit 96265d26454868b8b654e4a5271939748e1dd148 Jeff Wallace committed Jan 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/bundler/bundler.plugin.zsh
View
2 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

0 comments on commit 96265d2

Please sign in to comment.
Something went wrong with that request. Please try again.