From 06b03ea27cdacbbc946b8e8743093b63a7bd8014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 15 Jun 2020 13:49:25 +0200 Subject: [PATCH] Exit with success if everything was ok --- cluster/apt.check.update.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cluster/apt.check.update.sh b/cluster/apt.check.update.sh index 8b67731..e42987f 100755 --- a/cluster/apt.check.update.sh +++ b/cluster/apt.check.update.sh @@ -63,7 +63,7 @@ debug_message() { # {{{ } # }}} -is_apt_upgrade_absent() { # {{{ +is_apt_upgrade_absent() { # {{{ ## Count the number of upgradable packages and substract 1 for the header local_apt_upgrade_number="$(apt list --upgradable \ @@ -87,7 +87,7 @@ APT upgrade available for this system: ${RED}${local_apt_upgrade_number:=/dev/nu } # }}} -is_apt_upgrade_present() { # {{{ +is_apt_upgrade_present() { # {{{ ## Count the number of upgradable packages and substract 1 for the header local_apt_upgrade_number="$(apt list --upgradable \ @@ -125,11 +125,12 @@ main() { # {{{ ## If APT package upgrade is available ### Disable SGE queue is_apt_upgrade_present \ - && sh "${disable_host_queue_script}" + && sh "${disable_host_queue_script}" \ + && exit 0 } # }}} main -exit 0 +exit 255