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() {
|
have_interpreter() {
|
||||||
if [[ ! $interpreter_checked[$1] ]]; then
|
if [[ ! $interpreter_checked[$1] ]]; then
|
||||||
check "Checking for $1… "
|
check "Checking for $1… "
|
||||||
if which ruby &> /dev/null; then
|
if which $1 &> /dev/null; then
|
||||||
succeed
|
succeed
|
||||||
interpreter_checked[$1]=1
|
interpreter_checked[$1]=1
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue