peilaus alkaen
https://github.com/Hilbis/Hilbish
synced 2025-07-02 01:02:03 +00:00
fix: finish command properly when sh error occurs
This commit is contained in:
vanhempi
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 {
|
||||
cmdFinish(code, cmdString, origInput)
|
||||
} else {
|
||||
cmdFinish(126, cmdString, origInput)
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
}
|
||||
}
|
||||
|
Ladataan…
x
Viittaa uudesa ongelmassa
Block a user