From 24f748ce89ed34bc2f359826ebb669c40de9cf46 Mon Sep 17 00:00:00 2001 From: J0WI Date: Sun, 3 Jun 2018 21:01:33 +0200 Subject: [PATCH] More generic jq filter --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 9bfa220..f848cb6 100755 --- a/update.sh +++ b/update.sh @@ -11,7 +11,7 @@ phpVersions=( "${phpVersions[@]%/}" ) current="$(curl -fsSL 'https://downloads.joomla.org/api/v1/latest/cms' | jq -r '.branches[3].version')" urlVersion=$(echo $current | sed -e 's/\./-/g') -sha1="$(curl -fsSL "https://downloads.joomla.org/api/v1/signatures/cms/$urlVersion" | jq -r '.files[9].sha1')" +sha1="$(curl -fsSL "https://downloads.joomla.org/api/v1/signatures/cms/$urlVersion" | jq -r --arg file "Joomla_${current}-Stable-Full_Package.tar.bz2" '.[] | .[] | select(.filename == $file).sha1')" declare -A variantExtras=( [apache]='\n# Enable Apache Rewrite Module\nRUN a2enmod rewrite\n'