diff options
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) } } |
