From 96ea17080a7addd1cd8b6253422776bc237fc6b1 Mon Sep 17 00:00:00 2001 From: Lucas Ma <396089703@qq.com> Date: Mon, 15 Jun 2026 18:18:28 +0800 Subject: [PATCH] fix(installer): tolerate sudo shims without -k (#13821) Co-authored-by: Lucas Ma <7184042+pony-maggie@users.noreply.github.com> --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index d907b795c..5234c17a4 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -473,7 +473,7 @@ EOF # be prompted for the password either way, so this shouldn't cause any issues. # if user_can_sudo; then - sudo -k >/dev/null 2>&1 # -k forces the password prompt + sudo -k >/dev/null 2>&1 || true # -k forces the password prompt when supported sudo chsh -s "$zsh" "$USER" else chsh -s "$zsh" "$USER" # run chsh normally