Merge tag 'v4.3.20-alpha.2' into dev/v4.4.9

This commit is contained in:
Zaiming (Stone) Shi 2022-09-15 09:42:04 +02:00
commit eba6d33b49
1 changed files with 14 additions and 13 deletions

View File

@ -70,7 +70,11 @@ otp_vsn_for() {
for tag in $(../scripts/relup-base-vsns.sh $EDITION | xargs echo -n); do
filename="$PROFILE-${tag#[e|v]}-otp$(otp_vsn_for "$tag")-$SYSTEM-$ARCH.zip"
url="https://packages.emqx.io/$DIR/$tag/$filename"
if [ ! -f "$filename" ] && curl -L -I -m 10 -o /dev/null -s -w "%{http_code}" "${url}" | grep -q -oE "^[23]+" ; then
echo "downloading base package from ${url} ..."
if [ -f "$filename" ]; then
echo "file $filename already downloaded; skikpped"
continue
fi
echo "downloading base package from ${url} ..."
curl -L -o "${filename}" "${url}"
if [ "$SYSTEM" != "centos6" ]; then
@ -81,9 +85,6 @@ for tag in $(../scripts/relup-base-vsns.sh $EDITION | xargs echo -n); do
## https://askubuntu.com/questions/1202208/checking-sha256-checksum
echo "${SUMSTR} ${filename}" | $SHASUM -c || exit 1
fi
else
echo "file $filename already downloaded or doesn't exist in the archives; skipping it"
fi
done
popd