1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-25 13:30:07 +00:00

bug fix: don't chmod inexisting file

This commit is contained in:
romkatv 2020-02-17 00:25:44 +01:00
parent e750c26266
commit a1c964b49d

View file

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