summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
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)
}
}