mirror of https://github.com/Hilbis/Hilbish
fix: finish command properly when sh error occurs
parent
639bd09d0e
commit
ef6bf24cda
1
exec.go
1
exec.go
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue