From 9a29d365a9ca36fe662905736e1a70a070ad1452 Mon Sep 17 00:00:00 2001 From: Gunnar Date: Mon, 9 Nov 2026 20:08:01 +0100 Subject: [PATCH] fix: sudoif askpass handling --- Justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Justfile b/Justfile index cf98ea4..fac1fee 100644 --- a/Justfile +++ b/Justfile @@ -59,7 +59,7 @@ sudoif command *args: function sudoif(){ if [[ "${UID}" -eq 0 ]]; then "$@" - elif [[ "$(command -v sudo)" && -n "${SSH_ASKPASS:-}" ]] && [[ -n "${DISPLAY:-}" || -n "${WAYLAND_DISPLAY:-}" ]]; then + elif [[ "$(command -v sudo)" && -n "${SUDO_ASKPASS:-}" ]] && [[ -n "${DISPLAY:-}" || -n "${WAYLAND_DISPLAY:-}" ]]; then /usr/bin/sudo --askpass "$@" || exit 1 elif [[ "$(command -v sudo)" ]]; then /usr/bin/sudo "$@" || exit 1