fix parsing bug with tag notes

This commit is contained in:
Brendan Webb 2021-08-26 22:24:25 +10:00
parent ae2407a9ff
commit ce71357803
1 changed files with 2 additions and 1 deletions

3
parse
View File

@ -3,7 +3,8 @@ 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)
DOWNLOAD_NOTES=$(cat $WPSET_REL | jq .[0].message | sed s/\"//g | sed 's/\\n/\
/g')
rm $WPSET_REL
}
# everything below this comment is entirely for debugging parsing.