Fix requirements checks for ruby module
Load any ruby version manager before checking the availability of ruby command.
This commit is contained in:
parent
20d7ec0ab8
commit
7614097e6c
1 changed files with 5 additions and 5 deletions
|
@ -5,11 +5,6 @@
|
|||
# Authors: Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# Return if requirements are not found.
|
||||
if (( ! $+commands[ruby] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Load RVM into the shell session.
|
||||
if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
|
||||
# Unset AUTO_NAME_DIRS since auto adding variable-stored paths to ~ list
|
||||
|
@ -36,6 +31,11 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
# Return if requirements are not found.
|
||||
if (( ! $+commands[ruby] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
#
|
||||
# Aliases
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue