diff --git a/main.go b/main.go index 6299d3b..66b3d0a 100644 --- a/main.go +++ b/main.go @@ -262,6 +262,9 @@ func HandleSignals() { for range c { if !running { + if !interactive { + os.Exit(0) + } lr.ClearInput() } }