aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Höltje <docwhat@gerf.org>2018-06-27 18:21:23 +0300
committerChristian Höltje <docwhat@gerf.org>2018-06-27 18:24:37 +0300
commit89863209fc81a70f6affa96ebd7df950cc3f8575 (patch)
tree5f1f6678a58d67a8da4f40018d157fa62ed13ab9
parent645034f74c6daca97c06f3dc99ae00e98522af49 (diff)
test-in-docker: make vars sorted and readonly
Marking variables as readonly is helpful for debugging and preventing problems.
-rwxr-xr-xtest-in-docker9
1 files changed, 7 insertions, 2 deletions
diff --git a/test-in-docker b/test-in-docker
index 89a223f1..f4e8e1c8 100755
--- a/test-in-docker
+++ b/test-in-docker
@@ -16,16 +16,18 @@ term=screen-256color
# ...see Modifiers in zshexpn(1) for details.
# List of ZSH versions
-typeset -a versions
+typeset -aU versions
versions=( docker/base-*/Dockerfile(N.on:h:t:s/base-//) )
+typeset -r versions
# List of frameworks
-typeset -a frameworks
+typeset -aU frameworks
frameworks=( docker/*/Dockerfile(N.on:h:t) )
for i in {$#frameworks..1}; do
# Remove all base entries
[[ "${frameworks[$i]}" = base-* ]] && frameworks[$i]=()
done
+typeset -r frameworks
# Known Issues
typeset -A known_issues
@@ -34,6 +36,7 @@ known_issues["4.3.11-zim"]="BROKEN: Zim wants ZSH 5.2 or newer."
known_issues["5.0.3-zim"]="DEPRECATED: Zim wants ZSH 5.2 or newer."
known_issues["5.1.1-zim"]="DEPRECATED: Zim wants ZSH 5.2 or newer."
known_issues["4.3.11-zulu"]="Zulu doesn't work; it needs a newer version of git."
+typeset -r known_issues
err()
{
@@ -178,6 +181,8 @@ while (( $# > 0 )); do
shift
done
+typeset -r use_version use_framework
+
build_and_run "$use_version" "$use_framework"
# EOF