attempt to merge devel

This commit is contained in:
Jeff Carr 2025-02-22 04:46:51 -06:00
parent 9139a4a6b4
commit 84c772dc41
1 changed files with 3 additions and 1 deletions

View File

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