diff --git a/github/check.owncloud.update.sh b/github/check.owncloud.update.sh index 3ddf490..21f19fd 100755 --- a/github/check.owncloud.update.sh +++ b/github/check.owncloud.update.sh @@ -241,12 +241,16 @@ main() { # {{{ if is_version_greater_than "${new_version}" "${current_version}" "|| "; then debug_message "| Current version (${current_version}) is older than new one \ (${new_version})." + ### Create a temp file to monitore + touch -- "${new_version_file}" + printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for Owncloud (current : ${current_version}) : ${new_version}." >> "${new_version_file}" + printf '\e[1;35m%-6s\e[m\n' "Please also take a look to the CHANGELOG : https://owncloud.com/changelog/server/" >> "${new_version_file}" ## }}} ## If current version is uptodate {{{ else debug_message "| Current version (${current_version}) seems uptodate \ or newer than available version (${new_version})." - ### Ensure to remove any temp file and useless .deb files + ### Ensure to remove any temp file rm --force -- "${new_version_file}" ### Exit debug_message "-- Test version END"