Skip to content

Commit 59aa5ca

Browse files
authored
Fix the version fetching in fetch-configlet to be case-insensitive. (exercism#1801)
* Add debug logging to fetch-configlet for issue exercism#1799. * Fix the version fetching in fetch-configlet to be case-insensitive.
1 parent 7bb6747 commit 59aa5ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/fetch-configlet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ case $(uname -m) in
4545
esac)
4646
4747
48-
VERSION="$(curl --silent --head $LATEST | awk -v FS=/ '/Location:/{print $NF}' | tr -d '\r')"
48+
VERSION="$(curl --silent --head $LATEST | awk -v FS=/ 'BEGIN {IGNORECASE = 1} /Location:/{print $NF}' | tr -d '\r')"
4949
URL=https://github.com/exercism/configlet/releases/download/$VERSION/configlet-$OS-${ARCH}.$EXT
5050
5151
echo

0 commit comments

Comments
 (0)