Skip to content

Commit

Permalink
fix:GITHUB_API_TOKEN: unbound variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rakuyoMo committed Apr 17, 2024
1 parent 7ad0e01 commit e32a307
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ fail() {
exit 1
}

curl_opts=(-fsSL)

if [ -n "${GITHUB_API_TOKEN:-}" ]; then
curl_opts=("${curl_opts[@]}" -H "Authorization: token $GITHUB_API_TOKEN")
fi

sort_versions() {
sed 'h; s/[+-]/./g; s/.p\([[:digit:]]\)/.z\1/; s/$/.z/; G; s/\n/ /' |
LC_ALL=C sort -t. -k 1,1 -k 2,2n -k 3,3n -k 4,4n -k 5,5n | awk '{print $2}'
Expand Down

0 comments on commit e32a307

Please sign in to comment.