Disable the Yay sudo loop with its supported option

This commit is contained in:
Afonso Oliveira committed 2026-09-07 00:24:43 +01:00
1 parent 177d5729c9
commit 35551b04da
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ sudo_options=()
if [[ ${OMARCHY_SUDO_NO_UPDATE:-0} == "1" ]]; then
sudo_wrapper="$OMARCHY_PATH/default/omarchy/sudo-no-update/sudo"
[[ -x $sudo_wrapper ]] || exit 1
sudo_options=(--sudo "$sudo_wrapper" --nosudoloop)
sudo_options=(--sudo "$sudo_wrapper" --sudoloop=false)
fi
if pacman -Qem >/dev/null; then
+1 -1
View File
@@ -103,7 +103,7 @@ case "$step" in
pacman) exit 0 ;;
yay)
[[ $* == *"--sudo $OMARCHY_PATH/default/omarchy/sudo-no-update/sudo"* ]] || exit 92
[[ $* == *"--nosudoloop"* ]] || exit 93
[[ $* == *"--sudoloop=false"* ]] || exit 93
;;
esac
STUB