diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2022-08-22 01:39:58 +0300 |
---|---|---|
committer | Ivan Komissarov <abbapoh@gmail.com> | 2022-08-22 01:39:58 +0300 |
commit | 3a177037a80e579a6767758b40dccd6f1acf3b68 (patch) | |
tree | cb2b51992b302aeb4e4e5e44930835e4594f88bb /scripts | |
parent | 015deadb1be852973b5821ebdb799b01ca565866 (diff) | |
parent | 09ff740b4e0520374e84415cfc97561809152270 (diff) |
Merge branch '1.23' into master
Change-Id: I1640aa670bd12be70b794286deda4d420bb491df
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install-ow.sh | 11 |
1 files 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 <<EOF @@ -114,15 +115,15 @@ DOWNLOAD_DIR=`mktemp -d 2>/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} |