diff --git a/pkg/shell/shell.go b/pkg/shell/shell.go index 8a73c39b..b9aae5fe 100644 --- a/pkg/shell/shell.go +++ b/pkg/shell/shell.go @@ -90,5 +90,7 @@ func Restart() { return } path = filepath.Clean(path) - _ = syscall.Exec(path, os.Args, os.Environ()) + if err = syscall.Exec(path, os.Args, os.Environ()); err != nil { + panic(err) + } }