Skip to content

Commit

Permalink
Fix bouncerw
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwilkins committed Sep 13, 2017
1 parent b6b05ba commit 1564e93
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bouncerw
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ download() {
echo "BOUNCER_VERSION is not set. Looking for the latest bouncer release..."
# Terraform Enterprise environment doesn't have jq, replace with this once it does:
# export BOUNCER_VERSION=$(curl -s "https://api.bintray.com/packages/palantir/releases/bouncer" | jq -r '.latest_version')
export BOUNCER_VERSION=$(curl -s "https://api.bintray.com/packages/palantir/releases/bouncer" | egrep -oh '"latest_version":"\S*?"' | cut -d ':' -f 2 | sed 's/"//g')
export BOUNCER_VERSION=$(curl -s "https://api.bintray.com/packages/palantir/releases/bouncer" | egrep -oh '"latest_version":"\S*?"' | cut -d ':' -f 2 | cut -d ',' -f 1 | sed 's/"//g')
fi
echo "Installing bouncer version ${BOUNCER_VERSION}"
#wget -q -O ./bouncer "${BASE_URL}/${BOUNCER_VERSION}/bouncer-${BOUNCER_VERSION}-linux-amd64.tgz!bouncer"
wget -q -O bouncer.tgz https://palantir.bintray.com/releases/com/palantir/bouncer/bouncer/${BOUNCER_VERSION}/bouncer-${BOUNCER_VERSION}.tgz
wget -q -O bouncer.tgz https://palantir.bintray.com/releases/com/palantir/bouncer/bouncer/${BOUNCER_VERSION}/bouncer-${BOUNCER_VERSION}-linux-amd64.tgz
tar -xzf bouncer.tgz
chmod 755 ./bouncer
}
Expand Down

0 comments on commit 1564e93

Please sign in to comment.