Skip to content

Commit

Permalink
Change exit code to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kacpersaw committed Nov 2, 2020
1 parent 622709f commit 862d7cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func runCompare(cmd *cobra.Command, options compareOptions) error {
}
changes, err := resourceManager.GetChanges()
if err != nil {
os.Exit(1)
os.Exit(2)
}
if len(changes) == 0 {
return nil
Expand Down
2 changes: 1 addition & 1 deletion cmd/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func runSync(cmd *cobra.Command, options syncOptions) error {
if options.dryRun {
changes, err := resourceManager.GetChanges()
if err != nil {
os.Exit(1)
os.Exit(2)
}
printChangedResources(cmd.OutOrStdout(), changes)
} else {
Expand Down

0 comments on commit 862d7cd

Please sign in to comment.