diff --git a/sys/sys.go b/sys/sys.go index ed38a54..aa948b5 100644 --- a/sys/sys.go +++ b/sys/sys.go @@ -122,10 +122,8 @@ func HandleSigKill(done chan os.Signal) { signal.Notify(done, syscall.SIGINT, syscall.SIGTERM) go func() { <-done // Will block here until user hits ctrl+c - cmd := exec.Command("tput", "cnorm") - RunCmd(cmd) - cmd = exec.Command("tput", "-x", "clear") - RunCmd(cmd) + RunCmd(exec.Command("tput", "cnorm")) + RunCmd(exec.Command("tput", "-x", "clear")) os.Exit(0) }() }