install.zsh: check for correct interpreter, instead of always checking for ruby
This commit is contained in:
parent
f0a0bfed9a
commit
84c77021e4
|
@ -6,7 +6,7 @@ typeset -A interpreter_checked
|
|||
have_interpreter() {
|
||||
if [[ ! $interpreter_checked[$1] ]]; then
|
||||
check "Checking for $1… "
|
||||
if which ruby &> /dev/null; then
|
||||
if which $1 &> /dev/null; then
|
||||
succeed
|
||||
interpreter_checked[$1]=1
|
||||
return 0
|
||||
|
|
Loading…
Reference in a new issue