Skip to content

Commit

Permalink
Fix uninstall exit error (don't worry if it's already uninstalled)
Browse files Browse the repository at this point in the history
  • Loading branch information
jomann09 committed Jan 15, 2024
1 parent 6a9cc67 commit 8e70a1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ func main() {
// Exit with error if we hit one
if err != nil {
config.Log.Error(err)
os.Exit(1)
if *action == "install" || *action == "uninstall" {
os.Exit(0)
} else {
os.Exit(1)
}
}

}

0 comments on commit 8e70a1b

Please sign in to comment.