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