Skip to content

Commit 1b9f044

Browse files
committed
skip exist with error if released brew version not found
1 parent 2de69c5 commit 1b9f044

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/bin/build_rpms.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ download_brew_rpms() {
128128
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${MINOR_VERSION}" "${BREW_RPM_SOURCE}"
129129

130130
out_path="${IMAGEDIR}/brew-rpms-released"
131-
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${MINOR_VERSION}" "${out_path}" "zstream"
132-
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${PREVIOUS_MINOR_VERSION}" "${out_path}" "zstream"
133-
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${YMINUS2_MINOR_VERSION}" "${out_path}" "zstream"
134-
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${MINOR_VERSION}" "${out_path}" "nightly"
135-
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${MINOR_VERSION}" "${out_path}" "rc"
136-
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${MINOR_VERSION}" "${out_path}" "ec"
131+
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${MINOR_VERSION}" "${out_path}" "zstream" || true
132+
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${PREVIOUS_MINOR_VERSION}" "${out_path}" "zstream" || true
133+
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${YMINUS2_MINOR_VERSION}" "${out_path}" "zstream" || true
134+
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${MINOR_VERSION}" "${out_path}" "nightly" || true
135+
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${MINOR_VERSION}" "${out_path}" "rc" || true
136+
bash -x "${SCRIPTDIR}/manage_brew_rpms.sh" download "4.${MINOR_VERSION}" "${out_path}" "ec" || true
137137
else
138138
echo "WARNING: The Brew Hub site is not accessible, skipping the download"
139139
fi

0 commit comments

Comments
 (0)