From 7a35039dad57e297a8245667da5137b5b804b17b Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 16 Jun 2022 15:49:34 +0200 Subject: [PATCH] update_psa: when called with an argument, skip test for available updates, executing 'git pull' in any case. --- update_psa_impl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/update_psa_impl b/update_psa_impl index d937a77..98ac476 100755 --- a/update_psa_impl +++ b/update_psa_impl @@ -28,11 +28,13 @@ collect_current_configuration () { #done } -update_psa() { +update_psa() { # calling with a parameter is used for testing - if ! updates_available; then # check for false alarm - update_psa_false_alarm "update requested, but no WAIT state detected" - exit $? + if [ $# -eq 0 ]; then + if ! updates_available; then # check for false alarm + update_psa_false_alarm "update requested, but no WAIT state detected" + exit $EXITCODE + fi fi update_psa_activated # message to ISMAS