diff options
author | Marc Cornellà <marc.cornella@live.com> | 2014-04-16 20:23:01 +0200 |
---|---|---|
committer | ncanceill <nicolas.canceill@ens-cachan.org> | 2014-06-28 10:12:19 +0200 |
commit | 340da08b9ad92654e5e9bb45a1aedc8645f78b74 (patch) | |
tree | 42a22c270be5f34c7adbd7c1911a2125eec27491 /plugins/bundler/bundler.plugin.zsh | |
parent | 82d557a84e26ea79a3ecc5a8e975890c23099a00 (diff) | |
download | zsh-340da08b9ad92654e5e9bb45a1aedc8645f78b74.tar.gz zsh-340da08b9ad92654e5e9bb45a1aedc8645f78b74.tar.bz2 zsh-340da08b9ad92654e5e9bb45a1aedc8645f78b74.zip |
Add missing quotes to within-bundler-project function
Diffstat (limited to 'plugins/bundler/bundler.plugin.zsh')
-rw-r--r-- | plugins/bundler/bundler.plugin.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh index 8571eeda3..d70e8d4da 100644 --- a/plugins/bundler/bundler.plugin.zsh +++ b/plugins/bundler/bundler.plugin.zsh @@ -40,8 +40,8 @@ _bundler-installed() { } _within-bundled-project() { - local check_dir=$PWD - while [ $check_dir != "/" ]; do + local check_dir="$PWD" + while [ "$check_dir" != "/" ]; do [ -f "$check_dir/Gemfile" ] && return check_dir="$(dirname $check_dir)" done |