Skip to content

Commit

Permalink
bug fix: don't chmod inexisting file
Browse files Browse the repository at this point in the history
  • Loading branch information
romkatv committed Feb 16, 2020
1 parent e750c26 commit a1c964b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/wizard.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1c964b

Please sign in to comment.