summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-07-09 03:18:29 -0500
committerJeff Carr <[email protected]>2025-07-09 23:24:06 -0500
commit8a788bef6d201b50dd066a62167a23378e4162a7 (patch)
treeab18e3b8af5eab617b48bdceae38759ca4320aee /exit.go
parent3588440aed55e81864c1afd2d96d6b037242befd (diff)
make git clone work in forged
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/exit.go b/exit.go
new file mode 100644
index 0000000..dce662b
--- /dev/null
+++ b/exit.go
@@ -0,0 +1,22 @@
+// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
+// Use of this source code is governed by the GPL 3.0
+
+package main
+
+import (
+ "os"
+
+ "go.wit.com/log"
+)
+
+func okExit(thing string) {
+ if thing != "" {
+ log.Info("forge exit:", thing, "ok")
+ }
+ os.Exit(0)
+}
+
+func badExit(err error) {
+ log.Info("forged failed: ", err)
+ os.Exit(-1)
+}