pacman, yay stuff was getting too complicated with password stuff, just don't do it unless not root.

This commit is contained in:
me
2026-08-14 11:14:46 -07:00
parent df449282e4
commit e167a3018e
+4 -4
View File
@@ -161,11 +161,11 @@
return 1 return 1
echo -e "\n" echo -e "\n"
echo "*** AUR (yay) ***" if [[ "$LOGNAME" != "root" ]]; then
if [[ $LOGNAME == "root" ]] then echo "*** AUR (yay) ***"
su -P {{ user }} -c "yay -Syu {{ update_accept_var }}" || return 2
else
yay -Syu {{ update_accept_var }} || return 2 yay -Syu {{ update_accept_var }} || return 2
else
echo "*** User is root, skipping AUR (yay) ***"
fi fi
echo -e "\n" echo -e "\n"
;; ;;