File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 2323export THRIFT_VERSION=0.22.0
2424
2525set -e
26+ set -o pipefail
2627date
2728sudo apt-get update -qq
2829sudo apt-get install -qq --no-install-recommends build-essential pv autoconf automake libtool curl make \
29- g++ unzip libboost-dev libboost-test-dev libboost-program-options-dev \
30+ g++ unzip libboost-dev libboost-test-dev libboost-program-options-dev wget \
3031 libevent-dev automake libtool flex bison pkg-config g++ libssl-dev xmlstarlet
3132date
3233pwd
33- wget -qO- https://archive.apache.org/dist/thrift/$THRIFT_VERSION /thrift-$THRIFT_VERSION .tar.gz | tar zxf -
34+ for attempt in 1 2 3; do
35+ if wget -nv -O- https://archive.apache.org/dist/thrift/$THRIFT_VERSION /thrift-$THRIFT_VERSION .tar.gz | tar zxf -; then
36+ break
37+ fi
38+ if [[ " $attempt " -eq 3 ]]; then
39+ echo " Failed to download thrift after ${attempt} attempts." >&2
40+ exit 1
41+ fi
42+ sleep $(( attempt * 5 ))
43+ done
3444cd thrift-${THRIFT_VERSION}
3545chmod +x ./configure
3646./configure --disable-libs
You can’t perform that action at this time.
0 commit comments