Exit with error properly and fix lint check
This commit is contained in:
@@ -1,12 +1,16 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/hpcng/warewulf/internal/app/wwctl"
|
"github.com/hpcng/warewulf/internal/app/wwctl"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
root := wwctl.GetRootCommand()
|
root := wwctl.GetRootCommand()
|
||||||
|
|
||||||
//nolint:errcheck
|
err := root.Execute()
|
||||||
root.Execute()
|
if err != nil {
|
||||||
|
os.Exit(255)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user