fixes bundler issues from pull request 2278

This commit is contained in:
John Agan 2013-11-30 10:38:51 -05:00
commit f3a280fc1e

View file

@ -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