File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ ZLUA_SCRIPT="${0:A:h}/z.lua"
6
6
7
7
# search lua executable
8
8
if [[ -z " $ZLUA_EXEC " ]]; then
9
- if [[ -x " $( \ w hich lua) " ]]; then
10
- ZLUA_EXEC=" $( \ w hich lua) "
11
- elif [[ -x " $( which lua5.3) " ]]; then
12
- ZLUA_EXEC=" $( \ w hich lua5.3) "
13
- elif [[ -x " $( which lua5.2) " ]]; then
14
- ZLUA_EXEC=" $( \ w hich lua5.2) "
15
- elif [[ -x " $( which lua5.1) " ]]; then
16
- ZLUA_EXEC=" $( \ w hich lua5.1) "
9
+ if [[ -x " $( command which lua) " ]]; then
10
+ ZLUA_EXEC=" $( command which lua) "
11
+ elif [[ -x " $( command which lua5.3) " ]]; then
12
+ ZLUA_EXEC=" $( command which lua5.3) "
13
+ elif [[ -x " $( command which lua5.2) " ]]; then
14
+ ZLUA_EXEC=" $( command which lua5.2) "
15
+ elif [[ -x " $( command which lua5.1) " ]]; then
16
+ ZLUA_EXEC=" $( command which lua5.1) "
17
17
else
18
18
echo " Not find lua in your $PATH , please install it."
19
19
return
You can’t perform that action at this time.
0 commit comments