chore(relup): fix bad url

This commit is contained in:
zhouzb 2022-07-12 14:50:59 +08:00
parent fe56985eec
commit d2774935df
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ pushd _upgrade_base
for tag in $(../scripts/relup-base-vsns.sh $EDITION | xargs echo -n); do for tag in $(../scripts/relup-base-vsns.sh $EDITION | xargs echo -n); do
filename="$PROFILE-$SYSTEM-${tag#[e|v]}-$ARCH.zip" filename="$PROFILE-$SYSTEM-${tag#[e|v]}-$ARCH.zip"
url="https://packages.emqx.io/$DIR/${tag#[e|v]}/$filename" url="https://packages.emqx.io/$DIR/$tag/$filename"
echo "downloading base package from ${url} ..." echo "downloading base package from ${url} ..."
if [ ! -f "$filename" ] && curl -L -I -m 10 -o /dev/null -s -w "%{http_code}" "${url}" | grep -q -oE "^[23]+" ; then if [ ! -f "$filename" ] && curl -L -I -m 10 -o /dev/null -s -w "%{http_code}" "${url}" | grep -q -oE "^[23]+" ; then
curl -L -o "${filename}" "${url}" curl -L -o "${filename}" "${url}"