From 76ffd9e22acc7f11ca501f03d6999adbdb9baa61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Thu, 26 Mar 2026 20:09:56 +0100 Subject: [PATCH] fix(installer): handle sudo shims that don't support -k flag (#13651) Related to #13585 Co-authored-by: Daniel Bates --- tools/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index c31ce2d55..d907b795c 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -473,7 +473,8 @@ EOF # be prompted for the password either way, so this shouldn't cause any issues. # if user_can_sudo; then - sudo -k chsh -s "$zsh" "$USER" # -k forces the password prompt + sudo -k >/dev/null 2>&1 # -k forces the password prompt + sudo chsh -s "$zsh" "$USER" else chsh -s "$zsh" "$USER" # run chsh normally fi