2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 19:53:23 +00:00

fix: pass alias expanded string to sh runner (fixes #201)

i have no idea why it didnt before, it *shouldnt*
introduce any problems and fixes this one.
This commit is contained in:
TorchedSammy 2022-08-30 23:10:47 -04:00
parent 2e192be2e1
commit c13889592f
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -101,7 +101,7 @@ func runInput(input string, priv bool) {
cmdFinish(0, input, priv) cmdFinish(0, input, priv)
return return
} }
input, exitCode, cont, err = handleSh(input) input, exitCode, cont, err = handleSh(cmdString)
case "hybridRev": case "hybridRev":
_, _, _, err = handleSh(input) _, _, _, err = handleSh(input)
if err == nil { if err == nil {
@ -112,7 +112,7 @@ func runInput(input string, priv bool) {
case "lua": case "lua":
input, exitCode, err = handleLua(cmdString) input, exitCode, err = handleLua(cmdString)
case "sh": case "sh":
input, exitCode, cont, err = handleSh(input) input, exitCode, cont, err = handleSh(cmdString)
} }
} else { } else {
// can only be a string or function so // can only be a string or function so