fix: sign digest lookup and sudoif askpass handling
build.yml (push) Invalid workflow file

This commit is contained in:
Gunnar committed 2026-11-09 20:07:53 +01:00
1 parent 3e37a88726
commit 2ff1038cd0
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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