diff options
| author | Jeff Carr <[email protected]> | 2025-10-17 05:32:48 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-17 05:32:48 -0500 |
| commit | 26cf2f20259a89fbba686d259b82d554ac24ec84 (patch) | |
| tree | 70c67706c160f6bfc0a26b489f2fff06f9b1c057 /exit.go | |
| parent | 8bc1bb9b307062735105edf2fdcd691404cf84c8 (diff) | |
try out argv as the name. is this weird?v0.1.45
Diffstat (limited to 'exit.go')
| -rw-r--r-- | exit.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -15,7 +15,7 @@ import ( // exits if not root func checkSuperuser() { if os.Getuid() != 0 { - me.sh.BadExit("need sudo", errors.New("this requires sudo acces")) + me.argv.BadExit("need sudo", errors.New("this requires sudo acces")) } } @@ -31,7 +31,7 @@ func exitOnError(cmd []string) { _, err = shell.RunVerbose(cmd) if err != nil { msg := fmt.Sprintf("Ran: %v", cmd) - me.sh.BadExit(msg, err) + me.argv.BadExit(msg, err) } } @@ -41,6 +41,6 @@ func exitOnErrorRealtime(cmd []string) { _, err = shell.RunRealtimeError(cmd) if err != nil { msg := fmt.Sprintf("Ran: %v", cmd) - me.sh.BadExit(msg, err) + me.argv.BadExit(msg, err) } } |
