Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
hardcode latest known url for release version
  • Loading branch information
av82 committed Feb 23, 2020
1 parent 23845b7 commit b895549
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ PREFIX="$(cd -P -- "${PREFIX}" && pwd)"
echo "Installing into ${PREFIX}" | sed "s#$HOME#~#g"

mkdir -p ${PREFIX}
releaseUrl=$(curl --head --silent ${repo_url}/releases/latest | grep "Location:" | cut -c11-)
releaseTag=$(echo $releaseUrl | awk 'BEGIN{FS="/"}{print $8}' | tr -d '\r')
url=${repo_url}/releases/download/${releaseTag}/okta-aws-cli-${releaseTag:1}.jar
url=https://github.com/PolySignInc/okta-aws-cli-assume-role/releases/download/v2.0.4/okta-aws-cli-2.0.4.jar
dest=${PREFIX}/$(basename ${url})
echo "Latest release JAR file: ${url}"
echo "Fetching JAR file → ${dest}" | sed "s#$HOME#~#g"
Expand Down

0 comments on commit b895549

Please sign in to comment.