mirror of
https://github.com/romkatv/powerlevel10k
synced 2024-12-26 16:02:36 +00:00
bug fix: don't chmod inexisting file
This commit is contained in:
parent
e750c26266
commit
a1c964b49d
@ -1780,7 +1780,7 @@ function change_zshrc() {
|
|||||||
|
|
||||||
{
|
{
|
||||||
local -i writable=1
|
local -i writable=1
|
||||||
if [[ ! -w $tmp ]]; then
|
if [[ -e $tmp && ! -w $tmp ]]; then
|
||||||
chmod u+w -- $tmp || return
|
chmod u+w -- $tmp || return
|
||||||
writable=0
|
writable=0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user