/+ add support for aur package
for the install command
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user