From 4148c2f5d1c670aab132052eadba32ae27b136c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 8 Dec 2023 11:54:28 +0100 Subject: [PATCH] =?UTF-8?q?Ensure=20to=20create=20temp=20file=20to=20monit?= =?UTF-8?q?ore=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- github/check.owncloud.update.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"