16 lines
469 B
Bash
16 lines
469 B
Bash
#!/bin/bash
|
|
function parse() {
|
|
WPSET_REL=$(mktemp /tmp/wpset-releases-XXXXX.json)
|
|
curl -s https://tildegit.org/api/v1/repos/BrendanTCC/brendotools-wallman/tags -o $WPSET_REL
|
|
DOWNLOAD_VERSION=$(cat $WPSET_REL | jq .[0].name | sed s/\"//g)
|
|
DOWNLOAD_NOTES=$(cat $WPSET_REL | jq .[0].message | sed s/\"//g)
|
|
rm $WPSET_REL
|
|
}
|
|
function debug() {
|
|
parse
|
|
echo "newest tag found: $DOWNLOAD_VERSION"
|
|
echo "tag message:"
|
|
echo "$DOWNLOAD_NOTES"
|
|
}
|
|
|