1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-14 00:50:08 +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:
Christian Höltje 2018-06-27 11:17:08 -04:00
parent 348617040b
commit 69fe19ca74

View file

@ -21,7 +21,10 @@ versions=( docker/base-*/Dockerfile(N.on:h:t:s/base-//) )
# List of frameworks
typeset -a frameworks
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
typeset -A known_issues