aboutsummaryrefslogtreecommitdiff
path: root/internal/wizard.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-xinternal/wizard.zsh2
1 files changed, 1 insertions, 1 deletions
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