Skip to content

Commit ae01355

Browse files
author
Matthew Fisher
committed
fix(builder): switch exit codes to 1
No point in using 64 as there's no significance tied to the number 64.
1 parent d7bfaef commit ae01355

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

builder/bin/get-app-config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,22 @@ func main() {
3838

3939
if *url == "" {
4040
fmt.Println("invalid url")
41-
os.Exit(64)
41+
os.Exit(1)
4242
}
4343

4444
if *builderKey == "" {
4545
fmt.Println("invalid builder key")
46-
os.Exit(64)
46+
os.Exit(1)
4747
}
4848

4949
if *user == "" {
5050
fmt.Println("invalid user")
51-
os.Exit(64)
51+
os.Exit(1)
5252
}
5353

5454
if *app == "" {
5555
fmt.Println("invalid app")
56-
os.Exit(64)
56+
os.Exit(1)
5757
}
5858

5959
data, err := json.Marshal(&builder.ConfigHook{ReceiveUser: *user, ReceiveRepo: *app})

builder/bin/publish-release-controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ func main() {
3636

3737
if *url == "" {
3838
fmt.Println("invalid url")
39-
os.Exit(64)
39+
os.Exit(1)
4040
}
4141

4242
if *builderKey == "" {
4343
fmt.Println("invalid builder key")
44-
os.Exit(64)
44+
os.Exit(1)
4545
}
4646

4747
bytes, err := ioutil.ReadAll(os.Stdin)
4848
if err != nil {
4949
fmt.Println("invalid json payload")
50-
os.Exit(64)
50+
os.Exit(1)
5151
}
5252

5353
postBody := strings.Replace(string(bytes), "'", "", -1)

0 commit comments

Comments
 (0)