Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit ee11754

Browse files
Waterdripsalexellis
authored andcommitted
Make Grep case insensitive in download script
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 <alistair@heyal.co.uk>
1 parent 6381b37 commit ee11754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

get.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export BINLOCATION="/usr/local/bin"
1616
# Content common across repos #
1717
###############################
1818

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

0 commit comments

Comments
 (0)