/+ add support for aur package

for the install command
This commit is contained in:
committer@t470p
2024-11-27 05:56:42 -05:00
parent 8f07715bf7
commit 421e4508c5

View File

@@ -193,7 +193,13 @@ if [ ${operation} == "install" ] ; then
param_check "${parameter}" "no package name given"
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