mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
bug fix: don't chmod inexisting file
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user