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.
cancel-commander
TorchedSammy 2022-08-30 23:10:47 -04:00
parent 2e192be2e1
commit c13889592f
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 2 deletions

View File

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