Skip to content

Commit

Permalink
add exit code in diff_check
Browse files Browse the repository at this point in the history
  • Loading branch information
BBBmau committed Feb 16, 2024
1 parent 205b550 commit 3c16df3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ func main() {
teamcityServices = pattern.Expand(teamcityServices, template, bs, submatches)
}

if bytes.Equal(googleServices, teamcityServices) {
fmt.Println("No Changes!")
} else {
fmt.Println("Diff")
if !bytes.Equal(googleServices, teamcityServices) {
fmt.Fprintf(os.Stderr, "error: diff in services_ga.kt")
os.Exit(1)
}
}

0 comments on commit 3c16df3

Please sign in to comment.