Skip to content

Commit

Permalink
feat: support specifying a Comtrya version with VERSION=x.x.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rawkode committed Nov 16, 2022
1 parent b07e998 commit a2a87bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
export BINLOCATION="/usr/local/bin"


version=$(curl -sI https://github.com/$OWNER/$REPO/releases/latest | grep -i "location:" | awk -F"/" '{ printf "%s", $NF }' | tr -d '\r')
version=$(curl -sI https://github.com/$OWNER/$REPO/releases/${VERSION:=latest} | grep -i "location:" | awk -F"/" '{ printf "%s", $NF }' | tr -d '\r')
if [ ! $version ]; then
echo "Failed while attempting to install $REPO. Please manually install:"
echo ""
Expand Down

0 comments on commit a2a87bb

Please sign in to comment.