mirror of
https://github.com/linka-cloud/d2vm.git
synced 2024-11-25 17:16:25 +00:00
fix execution exit code on error
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
parent
fb33b2a74e
commit
93ba19a1fa
@ -75,7 +75,9 @@ func main() {
|
|||||||
fmt.Println()
|
fmt.Println()
|
||||||
cancel()
|
cancel()
|
||||||
}()
|
}()
|
||||||
rootCmd.ExecuteContext(ctx)
|
if err := rootCmd.ExecuteContext(ctx); err != nil {
|
||||||
|
logrus.Fatal(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user