Skip to content

Commit 7bb6747

Browse files
authored
Add debug logging to fetch-configlet for issue exercism#1799. (exercism#1800)
1 parent 9cff3cd commit 7bb6747

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bin/fetch-configlet

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
LATEST=https://github.com/exercism/configlet/releases/latest
44

5+
echo ">>> Fetching configlet..."
6+
echo
7+
echo "$ uname"
8+
uname
9+
510
OS=$(
611
case $(uname) in
712
(Darwin*)
@@ -24,6 +29,9 @@ case $OS in
2429
echo "tgz";;
2530
esac)
2631
32+
echo "$ uname -m"
33+
uname -m
34+
2735
ARCH=$(
2836
case $(uname -m) in
2937
(*64*)
@@ -40,6 +48,9 @@ esac)
4048
VERSION="$(curl --silent --head $LATEST | awk -v FS=/ '/Location:/{print $NF}' | tr -d '\r')"
4149
URL=https://github.com/exercism/configlet/releases/download/$VERSION/configlet-$OS-${ARCH}.$EXT
4250
51+
echo
52+
echo ">>> Downloading from ${URL}"
53+
4354
case $EXT in
4455
(*zip)
4556
curl -s --location $URL -o bin/latest-configlet.zip

0 commit comments

Comments
 (0)