340da08b9ad92654e5e9bb45a1aedc8645f78b74

Author
Marc Cornellà <marc.cornella@live.com>
Committer
ncanceill <nicolas.canceill@ens-cachan.org>
Date

Message

Add missing quotes to within-bundler-project function

Diff

 1diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
 2index 8571eeda3b9ee46ef1983e24816a71c9640a4958..d70e8d4da507acc5dc7a5e3ccbc3660b68071879 100644
 3--- a/plugins/bundler/bundler.plugin.zsh
 4+++ b/plugins/bundler/bundler.plugin.zsh
 5@@ -40,8 +40,8 @@ _bundler-installed() {
 6 }
 7 
 8 _within-bundled-project() {
 9-  local check_dir=$PWD
10-  while [ $check_dir != "/" ]; do
11+  local check_dir="$PWD"
12+  while [ "$check_dir" != "/" ]; do
13     [ -f "$check_dir/Gemfile" ] && return
14     check_dir="$(dirname $check_dir)"
15   done