summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doAptUpgrade.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/doAptUpgrade.go b/doAptUpgrade.go
index 37b2ca9..f737e16 100644
--- a/doAptUpgrade.go
+++ b/doAptUpgrade.go
@@ -27,9 +27,11 @@ func doAptUpgrade() {
p := loop.Next()
// log.Info("apt install", name)
if me.forge.Machine.IsInstalled(p.Name) {
+ cmd := []string{"apt", "install", p.Name}
if argv.DryRun {
- log.Info("--dry-run", []string{"apt", "install", p.Name})
+ log.Info("--dry-run", cmd)
} else {
+ log.Info("Running:", cmd)
shell.RunRealtime([]string{"apt", "install", p.Name})
}
}