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