/+ 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"
|
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}
|
pacman -S ${parameter}
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user