/ wip
supporting aur packages for install / uninstall cmd
This commit is contained in:
@@ -195,8 +195,7 @@ if [ ${operation} == "install" ] ; then
|
|||||||
|
|
||||||
if [[ "$parameter" =~ ^aur:* ]]; then
|
if [[ "$parameter" =~ ^aur:* ]]; then
|
||||||
echo "Install AUR package '${parameter}'"
|
echo "Install AUR package '${parameter}'"
|
||||||
echo ${list_aur} > /tmp/list_aur.txt
|
sudo -u ${user} bash -c 'yay -S --needed --noconfirm --timeupdate ${parameter}'
|
||||||
sudo -u ${user} bash -c 'yay -S --needed --noconfirm --timeupdate $(</tmp/list_aur.txt)'
|
|
||||||
else
|
else
|
||||||
echo "Install Arch package '${parameter}'"
|
echo "Install Arch package '${parameter}'"
|
||||||
pacman -S ${parameter}
|
pacman -S ${parameter}
|
||||||
@@ -235,6 +234,10 @@ if [ ${operation} == "uninstall" ] ; then
|
|||||||
|
|
||||||
param_check "${parameter}" "no package name given"
|
param_check "${parameter}" "no package name given"
|
||||||
|
|
||||||
|
if [[ "$operation" =~ ^aur:* ]]; then
|
||||||
|
operation=${operation:4}
|
||||||
|
fi
|
||||||
|
|
||||||
# uninstall program and remove orphans
|
# uninstall program and remove orphans
|
||||||
pacman -Rns ${parameter}
|
pacman -Rns ${parameter}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user