From 9c9e8154198131aa283ad478034eb22abe92bdfc Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Wed, 30 Sep 2020 23:02:26 +0200 Subject: [PATCH] Remove seperate production channel Signed-off-by: Tilo Spannagel --- generate-stackbrew-library.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index 223905b3..d6bf9aab 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -1,10 +1,7 @@ #!/bin/bash set -Eeuo pipefail -declare -A release_channel=( - [stable]='19.0.3' - [production]='18.0.9' -) +stable_channel='19.0.3' self="$(basename "$BASH_SOURCE")" cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" @@ -94,11 +91,9 @@ for version in "${versions[@]}"; do versionAliases+=( "latest" ) fi - for channel in "${!release_channel[@]}"; do - if [ "$fullversion_with_extension" = "${release_channel[$channel]}" ]; then - versionAliases+=( "$channel" ) - fi - done + if [ "$fullversion_with_extension" = "$stable_channel" ]; then + versionAliases+=( "stable" "production" ) + fi variantAliases=( "${versionAliases[@]/%/-$variant}" ) variantAliases=( "${variantAliases[@]//latest-}" )