aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-17 02:25:44 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-17 02:25:44 +0300
commita1c964b49dc71121d8f7e48715493533809c9bb0 (patch)
treec8ada9dde17742c40afce1920168e738dbaebf8d
parente750c262668adbb2a79546a222995bcb83acbbe8 (diff)
bug fix: don't chmod inexisting file
-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