We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
boost
1 parent e60c88b commit 69f4306Copy full SHA for 69f4306
scripts/install-boost.sh
@@ -3,18 +3,17 @@
3
# Installs Boost from source
4
# usage: ./install-boost.sh <version>
5
6
-set -e
+set -o errexit ${RUNNER_DEBUG:+-x}
7
8
-if [ "$#" -ne 1 ]; then
+if [[ "$#" -ne 1 ]]; then
9
echo "usage: $0 <version>"
10
exit 1
11
fi
12
13
TARBALL_NAME=boost_$(echo "$1" | tr . _)
14
15
-curl --silent -Lo $TARBALL_NAME.tar.gz https://boostorg.jfrog.io/artifactory/main/release/$1/source/$TARBALL_NAME.tar.gz
16
-tar xzf $TARBALL_NAME.tar.gz
17
-cd $TARBALL_NAME
+curl --silent --location "https://archives.boost.io/release/${1}/source/${TARBALL_NAME}.tar.gz" | tar xzf -
+pushd "${TARBALL_NAME}"
18
./bootstrap.sh
19
./b2 --with-thread --with-chrono install
20
-cd ..
+popd
0 commit comments