summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2014-04-16 20:23:01 +0200
committerncanceill <nicolas.canceill@ens-cachan.org>2014-06-28 10:12:19 +0200
commit340da08b9ad92654e5e9bb45a1aedc8645f78b74 (patch)
tree42a22c270be5f34c7adbd7c1911a2125eec27491
parent82d557a84e26ea79a3ecc5a8e975890c23099a00 (diff)
downloadzsh-340da08b9ad92654e5e9bb45a1aedc8645f78b74.tar.gz
zsh-340da08b9ad92654e5e9bb45a1aedc8645f78b74.tar.bz2
zsh-340da08b9ad92654e5e9bb45a1aedc8645f78b74.zip
Add missing quotes to within-bundler-project function
-rw-r--r--plugins/bundler/bundler.plugin.zsh4
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