summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 07:57:48 -0500
committerJeff Carr <[email protected]>2025-10-03 07:57:48 -0500
commit8514f8fb6b6b74323186bd738e8d592332df3042 (patch)
tree4d7b81ca8ae7288e5979ea979eacf2a1060a0eb8
parent4574971b222384f3f0f1a5f41ce03ac7e495d682 (diff)
don't use apt in scripts
-rw-r--r--apt.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt.go b/apt.go
index ee7935f..d2524b5 100644
--- a/apt.go
+++ b/apt.go
@@ -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)
}