From f3a280fc1ea895c41c2b84190bdff224701db8c3 Mon Sep 17 00:00:00 2001 From: John Agan Date: Sat, 30 Nov 2013 10:38:51 -0500 Subject: [PATCH] fixes bundler issues from pull request 2278 --- plugins/bundler/bundler.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh index e390f8620..0e7e45fe1 100644 --- a/plugins/bundler/bundler.plugin.zsh +++ b/plugins/bundler/bundler.plugin.zsh @@ -32,7 +32,7 @@ _run-with-bundler() { fi } -if _bundler-installed; then +if [ _bundler-installed ]; then bundler_version=`bundle version | cut -d' ' -f3` if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then if [[ "$(uname)" == 'Darwin' ]] @@ -52,7 +52,7 @@ if _bundler-installed; then eval "function bundled_$cmd () { _run-with-bundler $cmd \$@}" alias $cmd=bundled_$cmd - if which _$cmd > /dev/null 2>&1; then + if [ which _$cmd > /dev/null 2>&1 ]; then compdef _$cmd bundled_$cmd=$cmd fi done