From 421e4508c5eba9819008486468fcadae98151e28 Mon Sep 17 00:00:00 2001 From: "committer@t470p" Date: Wed, 27 Nov 2024 05:56:42 -0500 Subject: [PATCH] /+ add support for aur package for the install command --- scripts/99_software.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/99_software.sh b/scripts/99_software.sh index 532445e..87c3a33 100755 --- a/scripts/99_software.sh +++ b/scripts/99_software.sh @@ -193,7 +193,13 @@ if [ ${operation} == "install" ] ; then param_check "${parameter}" "no package name given" - pacman -S ${parameter} + if [[ "$parameter" =~ ^aur:* ]]; then + echo "Install AUR package" + sudo -u ${user} bash -c 'yay -S --needed --noconfirm --timeupdate ${parameter}' + else + echo "Install Arch package" + pacman -S ${parameter} + fi fi