Skip to content

Commit cb02b18

Browse files
committed
download-gh-asset.sh: print if token is used
`set -v` just prints the command (line) but unlike `-x` doesn't expand used vars (we needed to see the contents of `$@`)
1 parent 52ef70f commit cb02b18

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/scripts/download-gh-asset.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ fi
3131
set -e
3232

3333
if [ -n "${GITHUB_TOKEN-}" ]; then
34+
echo "Using GITHUB_TOKEN from environment variable." 1>&2
3435
set -- -H "Authorization: token $GITHUB_TOKEN"
3536
else
37+
echo "No GITHUB_TOKEN was found!" 1>&2
3638
set --
3739
fi
3840
if [ "${file-}" ]; then
@@ -42,5 +44,4 @@ else
4244
echo "Downloading $gh_path" 1>&2
4345
set -- "$@" -O
4446
fi
45-
set -v
4647
curl -LSfs "$@" "$gh_path"

0 commit comments

Comments
 (0)