update_psa: when called with an argument, skip test for available

updates, executing 'git pull' in any case.
This commit is contained in:
Gerhard Hoffmann 2022-06-16 15:49:34 +02:00
parent 42fb74a041
commit 7a35039dad

View File

@ -28,11 +28,13 @@ collect_current_configuration () {
#done #done
} }
update_psa() { update_psa() { # calling with a parameter is used for testing
if [ $# -eq 0 ]; then
if ! updates_available; then # check for false alarm if ! updates_available; then # check for false alarm
update_psa_false_alarm "update requested, but no WAIT state detected" update_psa_false_alarm "update requested, but no WAIT state detected"
exit $? exit $EXITCODE
fi
fi fi
update_psa_activated # message to ISMAS update_psa_activated # message to ISMAS