浏览代码

Merge pull request #845 from tjwallace/bundler_plugin_fix

Fix bundler plugin for root level folders
Robby Russell 12 年之前
父节点
当前提交
ac910b85bd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/bundler/bundler.plugin.zsh

+ 1 - 1
plugins/bundler/bundler.plugin.zsh

@@ -16,7 +16,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