Exit with error properly and fix lint check

This commit is contained in:
Gregory Kurtzer
2021-09-08 11:38:39 -07:00
parent fdf6fc88fa
commit ee5b099e02

View File

@@ -1,12 +1,16 @@
package main
import (
"os"
"github.com/hpcng/warewulf/internal/app/wwctl"
)
func main() {
root := wwctl.GetRootCommand()
//nolint:errcheck
root.Execute()
err := root.Execute()
if err != nil {
os.Exit(255)
}
}