mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-02 19:53:23 +00:00
fix: finish properly when command exit is successful after contine prompt
This commit is contained in:
parent
b1ad90443e
commit
6740e012a5
2
exec.go
2
exec.go
@ -61,6 +61,8 @@ func runInput(input, origInput string) {
|
|||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
fmt.Fprintln(os.Stderr, err)
|
fmt.Fprintln(os.Stderr, err)
|
||||||
cmdFinish(1, cmdString, origInput)
|
cmdFinish(1, cmdString, origInput)
|
||||||
|
} else {
|
||||||
|
cmdFinish(0, cmdString, origInput)
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user