diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-02-20 16:35:42 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-02-20 16:35:42 +0300 |
commit | 4fdd02db2664f07ef3da4f1dff4fd80651480045 (patch) | |
tree | b633ba18994db390df397d1792d40b67a03eed8e /internal/p10k.zsh | |
parent | be7735ebf80071b3d331dbc0ce89d89554ef99f6 (diff) |
don't call zstat without arguments
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 3e29d388..10183dd3 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4583,7 +4583,9 @@ function _p9k_asdf_check_meta() { [[ -n $_p9k_asdf_meta_sig ]] || return [[ -z $^_p9k_asdf_meta_non_files(#qN) ]] || return local -a stat - zstat -A stat +mtime -- $_p9k_asdf_meta_files 2>/dev/null || return + if (( $#_p9k_asdf_meta_files )); then + zstat -A stat +mtime -- $_p9k_asdf_meta_files 2>/dev/null || return + fi [[ $_p9k_asdf_meta_sig == $ASDF_CONFIG_FILE$'\0'$ASDF_DATA_DIR$'\0'${(pj:\0:)stat} ]] || return } @@ -4648,7 +4650,9 @@ function _p9k_asdf_init_meta() { _p9k_asdf_meta_non_files=(${files:|_p9k_asdf_meta_files}) local -a stat - zstat -A stat +mtime -- $_p9k_asdf_meta_files 2>/dev/null || return + if (( $#_p9k_asdf_meta_files )); then + zstat -A stat +mtime -- $_p9k_asdf_meta_files 2>/dev/null || return + fi _p9k_asdf_meta_sig=$ASDF_CONFIG_FILE$'\0'$ASDF_DATA_DIR$'\0'${(pj:\0:)stat} } always { if (( $? == 0 )); then |