From 26cf2f20259a89fbba686d259b82d554ac24ec84 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 17 Oct 2025 05:32:48 -0500 Subject: try out argv as the name. is this weird? --- exit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'exit.go') 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) } } -- cgit v1.2.3