diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 63e4991b..2a1cc6a4 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -1780,7 +1780,7 @@ function change_zshrc() { { local -i writable=1 - if [[ ! -w $tmp ]]; then + if [[ -e $tmp && ! -w $tmp ]]; then chmod u+w -- $tmp || return writable=0 fi