diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-02-17 02:25:44 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-02-17 02:25:44 +0300 |
commit | a1c964b49dc71121d8f7e48715493533809c9bb0 (patch) | |
tree | c8ada9dde17742c40afce1920168e738dbaebf8d /internal/wizard.zsh | |
parent | e750c262668adbb2a79546a222995bcb83acbbe8 (diff) |
bug fix: don't chmod inexisting file
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-x | internal/wizard.zsh | 2 |
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 |