fix: get a valid zsh path for chsh

This commit is contained in:
Kayou 2024-07-17 00:15:36 +02:00 committed by GitHub
parent 6655cc12e6
commit 09dbf14b73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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