Fix bundler plugin for root level folders #845

Merged
merged 1 commit into from Jan 22, 2012
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