aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-04 09:55:15 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-04 09:55:15 +0300
commit9c8cf7ac5f511648e40865941bccf90b7afaf80e (patch)
treee7daac3e89fcd5f7ee101b9cefb29371bcb09db1
parent2862e5f3950e449bc5cbffd00dd43a8806582ccb (diff)
dump state even if the cache directory is world-readable
-rwxr-xr-xinternal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 08f5f95a..12e9e89c 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3361,7 +3361,7 @@ function _p9k_dump_state() {
is-at-least 5.4 || return # `typeset -g` doesn't roundtrip in zsh prior to 5.4.
local dir=${__p9k_dump_file:h}
[[ -d $dir ]] || mkdir -pm 0700 $dir || return
- [[ -w $dir && -z $dir(#qNR) ]] || return
+ [[ -w $dir ]] || return
local tmp=$__p9k_dump_file.$$-$EPOCHREALTIME-$RANDOM
local -i fd
sysopen -a -m 600 -o creat,trunc -u fd $tmp || return