aboutsummaryrefslogtreecommitdiff
path: root/test-in-docker
diff options
context:
space:
mode:
authorChristian Höltje <docwhat@gerf.org>2018-06-27 18:17:08 +0300
committerChristian Höltje <docwhat@gerf.org>2018-06-27 18:17:10 +0300
commit69fe19ca74ce5b00fa6d120ee6d20707443e5cea (patch)
tree0e27ec2391783e487ce6240f584a89ed8b7fea1c /test-in-docker
parent348617040b6985f21e1140c451747a8005249fb2 (diff)
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
Diffstat (limited to 'test-in-docker')
-rwxr-xr-xtest-in-docker5
1 files changed, 4 insertions, 1 deletions
diff --git a/test-in-docker b/test-in-docker
index 3c7255ec..d291402f 100755
--- a/test-in-docker
+++ b/test-in-docker
@@ -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