From 09dbf14b73344ea1a1383f0130713eb708804b55 Mon Sep 17 00:00:00 2001 From: Kayou Date: Wed, 17 Jul 2024 00:15:36 +0200 Subject: [PATCH] fix: get a valid zsh path for chsh --- install-scripts/zsh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-scripts/zsh.sh b/install-scripts/zsh.sh index d792d1e..86a4937 100755 --- a/install-scripts/zsh.sh +++ b/install-scripts/zsh.sh @@ -93,7 +93,7 @@ if command -v zsh >/dev/null; then printf "${NOTE} Changing default shell to zsh...\n" - while ! chsh -s $(which zsh); do + while ! chsh -s $(chsh -l | grep zsh | head -n 1); do echo "${ERROR} Authentication failed. Please enter the correct password." 2>&1 | tee -a "$LOG" sleep 1 done