2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 19:53:23 +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 { if code, ok := interp.IsExitStatus(err); ok {
cmdFinish(code, cmdString, origInput) cmdFinish(code, cmdString, origInput)
} else { } else {
cmdFinish(126, cmdString, origInput)
fmt.Fprintln(os.Stderr, err) fmt.Fprintln(os.Stderr, err)
} }
} }