diff options
| author | Jeff Carr <[email protected]> | 2025-07-09 03:18:29 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-07-09 23:24:06 -0500 |
| commit | 8a788bef6d201b50dd066a62167a23378e4162a7 (patch) | |
| tree | ab18e3b8af5eab617b48bdceae38759ca4320aee /exit.go | |
| parent | 3588440aed55e81864c1afd2d96d6b037242befd (diff) | |
make git clone work in forged
Diffstat (limited to 'exit.go')
| -rw-r--r-- | exit.go | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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) +} |
