diff --git a/update_element_im.sh b/update_element_im.sh index bb7f64f..1f47694 100755 --- a/update_element_im.sh +++ b/update_element_im.sh @@ -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')