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

fix: finish command properly when sh error occurs

This commit is contained in:
TorchedSammy 2022-03-06 13:32:39 -04:00
parent 639bd09d0e
commit ef6bf24cda
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -72,6 +72,7 @@ func runInput(input, origInput string) {
if code, ok := interp.IsExitStatus(err); ok {
cmdFinish(code, cmdString, origInput)
} else {
cmdFinish(126, cmdString, origInput)
fmt.Fprintln(os.Stderr, err)
}
}