@eshanized pushed another commit via script 🔥🔥🔥

This commit is contained in:
2024-03-11 14:35:41 +05:30
parent f19d21ad04
commit 5172bcd952

View File

@@ -196,13 +196,13 @@ do_update
if [[ -v UPDATE_AUR ]]; then if [[ -v UPDATE_AUR ]]; then
# Check for AUR helper # Check for AUR helper
if [ -x /usr/bin/paru ] && [[ -n "$SUDO_UID" ]]; then if [ -x /usr/bin/paru ] && [[ -n "$SUDO_UID" ]]; then
echo -e "\n\033[1;33m-->\033[1;34m Updating AUR packages with paru..\033[0m" echo -e "\n\033[1;33m-->\033[0;34m Updating AUR packages with paru..\033[0m"
sudo -u "#$SUDO_UID" paru -Sua || { echo -e "\033[1;31m\nParu exited with error code $?\n\033[0m"; } sudo -u "#$SUDO_UID" paru -Sua || { echo -e "\033[1;31m\nParu exited with error code $?\n\033[0m"; }
elif [ -x /usr/bin/yay ] && [[ -n "$SUDO_UID" ]]; then elif [ -x /usr/bin/yay ] && [[ -n "$SUDO_UID" ]]; then
echo -e "\n\033[1;33m-->\033[1;34m Updating AUR packages with yay..\033[0m" echo -e "\n\033[0;33m-->\033[0;34m Updating AUR packages with yay..\033[0m"
sudo -u "#$SUDO_UID" yay -Sua || { echo -e "\033[1;31m\nYay exited with error code $?\n\033[0m"; } sudo -u "#$SUDO_UID" yay -Sua || { echo -e "\033[1;31m\nYay exited with error code $?\n\033[0m"; }
else else
echo -e "\n\033[1;33m--> UPDATE_AUR specified but no supported AUR helper found ❌\033[0m" echo -e "\n\033[0;33m--> UPDATE_AUR specified but no supported AUR helper found ❌\033[0m"
fi fi
$INT $INT
fi fi