|
|
@@ -10,7 +10,7 @@ import (
|
|
|
|
|
|
// Run the given command, showing output.
|
|
|
func run_command(command []string) error {
|
|
|
- fmt.Println(strings.Repeat("=", 50))
|
|
|
+ fmt.Println(strings.Repeat("=", 64))
|
|
|
fmt.Println(command)
|
|
|
cmd := exec.Command(command[0], command[1:]...)
|
|
|
// Connections
|
|
|
@@ -23,6 +23,9 @@ func run_command(command []string) error {
|
|
|
err := cmd.Run()
|
|
|
fmt.Println(strings.Repeat("=", 50))
|
|
|
if err != nil {
|
|
|
+ fmt.Println("Did you forget to:")
|
|
|
+ fmt.Println(" sudo chown root:root aptgrade")
|
|
|
+ fmt.Println(" sudo chmod a+s aptgrade")
|
|
|
fmt.Println("Command failed:", err)
|
|
|
}
|
|
|
return err
|