Skip to content

Commit

Permalink
Return non-zero exit if user is missing groups
Browse files Browse the repository at this point in the history
  • Loading branch information
amfl committed Jul 2, 2020
1 parent 8731245 commit 4b727fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/yodel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,10 @@ func main() {
}
fmt.Println(output)

if performingDiff && outputGroups.Cardinality() != 0 {
// Non-zero exit if user is missing groups
os.Exit(1)
}

log.Print("All done")
}

0 comments on commit 4b727fd

Please sign in to comment.