aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-08-03 13:19:43 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-08-03 13:19:43 +0200
commit8d3735481effaa50c76ed6e25337f681c6f568a4 (patch)
tree053e55ccf6ae14b7e53fadc12cf31f076ea32157
parented3d178bb8db30d7795888bf90f3e508a5711fb6 (diff)
downloadbashtard-8d3735481effaa50c76ed6e25337f681c6f568a4.tar.gz
bashtard-8d3735481effaa50c76ed6e25337f681c6f568a4.tar.bz2
Add package manager entry for Ubuntu
-rw-r--r--lib/util/pkg.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/util/pkg.bash b/lib/util/pkg.bash
index 1cdae2c..1538c3e 100644
--- a/lib/util/pkg.bash
+++ b/lib/util/pkg.bash
@@ -36,6 +36,7 @@ pkg_install() {
freebsd) set -- /usr/sbin/pkg install -y "$app" ;;
linux-debian*) set -- apt install -y "$app" ;;
linux-gentoo) set -- emerge --ask=n --update "$app" ;;
+ linux-ubuntu) set -- apt install -y "$app" ;;
*)
crit "$system" "No package manager configured for ${BASHTARD_PLATFORM[key]}"
return 1
@@ -56,6 +57,7 @@ pkg_uninstall() {
freebsd) set -- /usr/sbin/pkg uninstall -y "$app" ;;
linux-debian*) set -- apt remove -y "$app" ;;
linux-gentoo) set -- emerge --ask=n --unmerge "$app" ;;
+ linux-ubuntu) set -- apt remove -y "$app" ;;
*)
crit "$system" "No package manager configured for ${BASHTARD_PLATFORM[key]}"
return 1