"vscode:/vscode.git/clone" did not exist on "7bb42fb49a0dcbd0774a0e6efafe766fdfc82268"
Commit 08a28086 authored by Iulian Onofrei's avatar Iulian Onofrei Committed by Marc Cornellà
Browse files

Fix incorrect error message when running bi without having bundler installed (#7112)

parent f75d096c
...@@ -54,8 +54,12 @@ done ...@@ -54,8 +54,12 @@ done
## Functions ## Functions
bundle_install() { bundle_install() {
if _bundler-installed && _within-bundled-project; then if ! _bundler-installed; then
local bundler_version=`bundle --version | cut -d' ' -f3` echo "Bundler is not installed"
elif ! _within-bundled-project; then
echo "Can't 'bundle install' outside a bundled project"
else
local bundler_version=`bundle version | cut -d' ' -f3`
if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
if [[ "$OSTYPE" = (darwin|freebsd)* ]] if [[ "$OSTYPE" = (darwin|freebsd)* ]]
then then
...@@ -67,8 +71,6 @@ bundle_install() { ...@@ -67,8 +71,6 @@ bundle_install() {
else else
bundle install $@ bundle install $@
fi fi
else
echo "Can't 'bundle install' outside a bundled project"
fi fi
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment