From 35551b04daf5b338b9a85754e2a05154f45989d6 Mon Sep 17 00:00:00 2001 From: Afonso Oliveira Date: Mon, 7 Sep 2026 00:24:43 +0100 Subject: [PATCH] Disable the Yay sudo loop with its supported option --- bin/omarchy-update-aur-pkgs | 2 +- test/shell.d/fixtures/sudo-boundary-test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-update-aur-pkgs b/bin/omarchy-update-aur-pkgs index 8cdfb617..a860a97d 100755 --- a/bin/omarchy-update-aur-pkgs +++ b/bin/omarchy-update-aur-pkgs @@ -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 diff --git a/test/shell.d/fixtures/sudo-boundary-test.sh b/test/shell.d/fixtures/sudo-boundary-test.sh index 6c6bada3..2ed8438b 100644 --- a/test/shell.d/fixtures/sudo-boundary-test.sh +++ b/test/shell.d/fixtures/sudo-boundary-test.sh @@ -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