change test syntax

This commit is contained in:
benniekiss 2024-07-05 14:59:13 +00:00 committed by benniekiss
parent 2b1dcdb5a7
commit 9e05e3b644

View file

@ -146,10 +146,10 @@ download() {
(
mkdir -p $RELEASE_DIR
cd $RELEASE_DIR
if test ${DOWNLOAD_LATEST} == "true"; then
if [[ ${DOWNLOAD_LATEST} == "true" ]] ; then
echo "Downloading the latest release"
api GET repos/$REPO/releases/latest > $TMP_DIR/assets.json
elif test ${DOWNLOAD_lATEST} == "false"; then
elif [[ ${DOWNLOAD_LATEST} == "false" ]] ; then
wait_release
echo "Downloading tagged release ${TAG}"
api GET repos/$REPO/releases/tags/$TAG > $TMP_DIR/assets.json