fix: finish command properly when sh error occurs

windows-fixes
TorchedSammy 2022-03-06 13:32:39 -04:00
parent 639bd09d0e
commit ef6bf24cda
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 0 deletions

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)
}
}