From 60b9a909ad8d2241d8b1e9c47483e4c376a71d66 Mon Sep 17 00:00:00 2001 From: Felix Bartels Date: Mon, 15 Oct 2018 09:50:27 +0200 Subject: [PATCH] replace $1 in curl --data command Signed-off-by: Felix Bartels --- base/create-kopano-repo.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base/create-kopano-repo.sh b/base/create-kopano-repo.sh index 6013832..a9b503d 100755 --- a/base/create-kopano-repo.sh +++ b/base/create-kopano-repo.sh @@ -9,9 +9,10 @@ function version_from_filename { } function h5ai_query { - filename=$(curl -s -S -L -d "action=get&items%5Bhref%5D=%2Fcommunity%2F$1%3A%2F&items%5Bwhat%5D=1" -H \ + component="$1" + filename=$(curl -s -S -L -d "action=get&items%5Bhref%5D=%2Fcommunity%2F$component%3A%2F&items%5Bwhat%5D=1" -H \ "Accept: application/json" https://download.kopano.io/community/ | jq '.items[].href' | \ - grep 'Debian_9.0-all\|Debian_9.0-amd64' | sed 's#"##g' | sed "s#/community/$1:/##") + grep 'Debian_9.0-all\|Debian_9.0-amd64' | sed 's#"##g' | sed "s#/community/$component:/##") if [ -z "${filename// }" ]; then echo "unknown component"