Skip to content

Commit

Permalink
Fix get.sh script with case insensitive grep
Browse files Browse the repository at this point in the history
Github change the case sensitivity of the location header to lowercase.
This changes the grep on that header to be case insensitive

Signed-off-by: Alistair Hey <[email protected]>
  • Loading branch information
Waterdrips authored and alexellis committed Feb 28, 2020
1 parent 5256781 commit 5b841e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export REPO=inletsctl
export SUCCESS_CMD="$REPO version"
export BINLOCATION="/usr/local/bin"

version=$(curl -sI https://github.com/$OWNER/$REPO/releases/latest | grep Location | awk -F"/" '{ printf "%s", $NF }' | tr -d '\r')
version=$(curl -sI https://github.com/$OWNER/$REPO/releases/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:"
Expand Down

0 comments on commit 5b841e9

Please sign in to comment.