summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-17 05:32:48 -0500
committerJeff Carr <[email protected]>2025-10-17 05:32:48 -0500
commit26cf2f20259a89fbba686d259b82d554ac24ec84 (patch)
tree70c67706c160f6bfc0a26b489f2fff06f9b1c057 /exit.go
parent8bc1bb9b307062735105edf2fdcd691404cf84c8 (diff)
try out argv as the name. is this weird?v0.1.45
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/exit.go b/exit.go
index c60766c..5dab98a 100644
--- a/exit.go
+++ b/exit.go
@@ -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)
}
}