Re-instate cleanup of temp dir; changelog printing
This commit is contained in:
parent
86dbe1b730
commit
e052a7ddb6
1 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,7 @@ function version_gt() {
|
||||||
|
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
local tmpdir=$1
|
local tmpdir=$1
|
||||||
# rm -r "${tmpdir:?}"/*
|
rm -r "${tmpdir:?}"/*
|
||||||
rmdir "${tmpdir}"
|
rmdir "${tmpdir}"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -66,6 +66,10 @@ echo "Checking for version updates..."
|
||||||
|
|
||||||
if version_gt "${remote_version}" "v${current_version}"
|
if version_gt "${remote_version}" "v${current_version}"
|
||||||
then
|
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[] |
|
asset_name=$(echo "${github_data}" | jq -r '.assets[] |
|
||||||
select(.browser_download_url|endswith("tar.gz")) |
|
select(.browser_download_url|endswith("tar.gz")) |
|
||||||
select(.name|startswith("riot")).browser_download_url')
|
select(.name|startswith("riot")).browser_download_url')
|
||||||
|
|
Loading…
Add table
Reference in a new issue