Skip to content

Commit

Permalink
some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
klundberg committed Aug 27, 2019
1 parent 09a76dc commit 895123c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
8 changes: 6 additions & 2 deletions bin/list-all
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ curl_cmd="curl -s"
if [ -n "$GITHUB_API_TOKEN" ]; then
curl_cmd="$curl_cmd -H \"Authorization: token $GITHUB_API_TOKEN\""
fi
curl_cmd="$curl_cmd $RELEASES_URL"

echo $(eval "$curl_cmd" | grep tag_name | sed 's/"tag_name": //g;s/"//g;s/,//g' | (tac 2>/dev/null || tail -r) | xargs)
# Fetch list of releases and get names of each release tag
eval "$curl_cmd $RELEASES_URL" \
| grep tag_name \
| sed 's/"tag_name": //g;s/"//g;s/,//g' \
| (tac 2>/dev/null || tail -r) \
| xargs
26 changes: 0 additions & 26 deletions lib/utils.sh

This file was deleted.

0 comments on commit 895123c

Please sign in to comment.