mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-23 15:41:57 +00:00
test-in-docker: fix in zsh > 5.3
The way I was filtering out entries in the frameworks array stopped working in newer versions of ZSH; it would convert the array into a string (you could see it with `typeset -p frameworks`) So I rewrote it. I don't see anything in the release notes for ZSH that would explain this and I didn't find any option that would restore this behavior. Related: #882
This commit is contained in:
parent
348617040b
commit
69fe19ca74
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,10 @@ versions=( docker/base-*/Dockerfile(N.on:h:t:s/base-//) )
|
||||||
# List of frameworks
|
# List of frameworks
|
||||||
typeset -a frameworks
|
typeset -a frameworks
|
||||||
frameworks=( docker/*/Dockerfile(N.on:h:t) )
|
frameworks=( docker/*/Dockerfile(N.on:h:t) )
|
||||||
frameworks=${(@)frameworks:#base-*}
|
for i in {$#frameworks..1}; do
|
||||||
|
# Remove all base entries
|
||||||
|
[[ "${frameworks[$i]}" = base-* ]] && frameworks[$i]=()
|
||||||
|
done
|
||||||
|
|
||||||
# Known Issues
|
# Known Issues
|
||||||
typeset -A known_issues
|
typeset -A known_issues
|
||||||
|
|
Loading…
Reference in a new issue