Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
08a28086
Commit
08a28086
authored
Sep 09, 2018
by
Iulian Onofrei
Committed by
Marc Cornellà
Sep 09, 2018
Browse files
Fix incorrect error message when running bi without having bundler installed (#7112)
parent
f75d096c
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/bundler/bundler.plugin.zsh
View file @
08a28086
...
...
@@ -54,8 +54,12 @@ done
## Functions
bundle_install
()
{
if
_bundler-installed
&&
_within-bundled-project
;
then
local
bundler_version
=
`
bundle
--version
|
cut
-d
' '
-f3
`
if
!
_bundler-installed
;
then
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
[[
"
$OSTYPE
"
=
(
darwin|freebsd
)
*
]]
then
...
...
@@ -67,8 +71,6 @@ bundle_install() {
else
bundle
install
$@
fi
else
echo
"Can't 'bundle install' outside a bundled project"
fi
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment