bug fix: don't chmod inexisting file

pull/527/head
romkatv 5 years ago
parent e750c26266
commit a1c964b49d

@ -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

Loading…
Cancel
Save