diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 07:57:48 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 07:57:48 -0500 |
| commit | 8514f8fb6b6b74323186bd738e8d592332df3042 (patch) | |
| tree | 4d7b81ca8ae7288e5979ea979eacf2a1060a0eb8 | |
| parent | 4574971b222384f3f0f1a5f41ce03ac7e495d682 (diff) | |
don't use apt in scripts
| -rw-r--r-- | apt.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,7 +8,7 @@ import ( ) func aptInstall(pkgname string) { - cmd := []string{"apt", "install", "-y", pkgname} + cmd := []string{"apt-get", "install", "-y", pkgname} log.Info("Running:", cmd) exitOnError(cmd) } @@ -17,7 +17,7 @@ func aptRemove(pkgname string) { if pkgname == "mirrors.wit.com" { return } - cmd := []string{"apt", "remove", "-y", pkgname} + cmd := []string{"apt-get", "remove", "-y", pkgname} log.Info("Running:", cmd) exitOnError(cmd) } |
