From 7276cc709851333c39e24688803468a7877da322 Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Sat, 20 Aug 2022 15:45:56 +0300 Subject: GitHub actions: Fix install-ow.sh Change-Id: I76cbafa8c0eaf8c6d48c6d1a4c2cd4ba8c9215c6 Reviewed-by: Denis Shienkov --- scripts/install-ow.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/install-ow.sh b/scripts/install-ow.sh index 6b123fab8..c8db30b8f 100755 --- a/scripts/install-ow.sh +++ b/scripts/install-ow.sh @@ -38,6 +38,7 @@ ## ############################################################################# set -eu +set -o pipefail function show_help() { cat </dev/null || mktemp -d -t 'ow-tmp'` VERSION_MAJOR=`echo $VERSION | cut -d. -f1` VERSION_MINOR=`echo $VERSION | cut -d. -f2` -OW_URL="https://github.com/open-watcom/open-watcom-v${VERSION_MAJOR}/releases/download/Current-build/ow-snapshot.tar.gz" -OW_TARGZ="${DOWNLOAD_DIR}/ow.tar.gz" +OW_URL="https://github.com/open-watcom/open-watcom-v${VERSION_MAJOR}/releases/download/Current-build/ow-snapshot.tar.xz" +OW_TAR="${DOWNLOAD_DIR}/ow.tar.xz" echo "Downloading compiler from ${OW_URL}..." >&2 -curl --progress-bar -L -o ${OW_TARGZ} ${OW_URL} >&2 +curl --progress-bar -L -o ${OW_TAR} ${OW_URL} >&2 echo "Unpacking compiler to ${INSTALL_DIR}..." >&2 -7z x "${OW_TARGZ}" -so | 7z x -aoa -si -ttar -o"${INSTALL_DIR}" >/dev/null 2>&1 +7z x "${OW_TAR}" -so | 7z x -aoa -si -ttar -o"${INSTALL_DIR}" >/dev/null 2>&1 echo "${INSTALL_DIR}/${BIN_DIR}" -rm -f ${OW_TARGZ} +rm -f ${OW_TAR} -- cgit v1.2.1