1
0
Fork 0

Re-instate cleanup of temp dir; changelog printing

This commit is contained in:
Luca Beltrame 2020-09-19 10:39:53 +02:00
parent 86dbe1b730
commit e052a7ddb6
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -11,7 +11,7 @@ function version_gt() {
function cleanup() {
local tmpdir=$1
# rm -r "${tmpdir:?}"/*
rm -r "${tmpdir:?}"/*
rmdir "${tmpdir}"
}
@ -66,6 +66,10 @@ echo "Checking for version updates..."
if version_gt "${remote_version}" "v${current_version}"
then
echo "New version found: ${remote_version}"
changelog=$(echo "${github_data} | jq -r '.body'")
echo "Changes in this version:"
echo "${changelog}"
asset_name=$(echo "${github_data}" | jq -r '.assets[] |
select(.browser_download_url|endswith("tar.gz")) |
select(.name|startswith("riot")).browser_download_url')