aboutsummaryrefslogtreecommitdiff
path: root/libs/pkgmanager
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-09 20:44:48 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-09 20:44:48 +0200
commit10cfc1c1b353e616bd01afafb627551c8aaeba71 (patch)
tree13dc9825417319576633095797b0b45433d42763 /libs/pkgmanager
parentddccda603dc56d94eaa81775859ddd9d0a29ce06 (diff)
parent293b31cb0081a9bf61dcb0edf6e09ba965c42a1a (diff)
downloadltask-10cfc1c1b353e616bd01afafb627551c8aaeba71.tar.gz
Merge branch 'master' into dev
Diffstat (limited to 'libs/pkgmanager')
-rw-r--r--libs/pkgmanager5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/pkgmanager b/libs/pkgmanager
index 7a5793a..5f5ecc3 100644
--- a/libs/pkgmanager
+++ b/libs/pkgmanager
@@ -5,6 +5,8 @@ alias sudo="sudo "
PKGMAN="/bin/false"
[ -f "/etc/os-release" ] && source /etc/os-release
+[ -z $ID ] && ID=$ID_LIKE
+
case $ID in
arch)
PKGMAN="pacman"
@@ -22,6 +24,9 @@ case $ID in
UPGRADE_CMD="upgrade -y"
FULLUPGRADE_CMD="dist-upgrade"
;;
+ *)
+ 1>&2 echo Distribution could not be determined
+ exit 1
esac
alias pkg_install="$PKGMAN $INSTALL_CMD"