Skip to content

Commit

Permalink
Make Grep case insensitive in download script
Browse files Browse the repository at this point in the history
Github made the location header lowercase, so our get.sh script was
failing. This makes the grep case inseneitive.

Tested by running the script to make sure it failed, then making the
grep into a `grep -i` and running again, this time it worked.

Signed-off-by: Alistair Hey <[email protected]>
  • Loading branch information
Waterdrips authored and alexellis committed Feb 28, 2020
1 parent eb6815d commit b96fcd5
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 @@ -16,7 +16,7 @@ export BINLOCATION="/usr/local/bin"
# Content common across repos #
###############################

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:"
echo ""
Expand Down

0 comments on commit b96fcd5

Please sign in to comment.