Use of GIT_CLONE_EXECUTED to check if clone was running

This commit is contained in:
Gerhard Hoffmann 2022-06-12 13:07:57 +02:00
parent b3eed36db8
commit 0541206033

View File

@ -41,13 +41,16 @@ update_psa() {
log_debug "$func:${LINENO}: fetch/merge updates..." log_debug "$func:${LINENO}: fetch/merge updates..."
# Fetch new updates (using git) # Fetch new updates (using git). but only when repository has already been
if ! fetch_customer_updates; then # cloned.
log_error "$func:${LINENO}: fetch no data for $customer_id"\ if [ $GIT_CLONE_EXECUTED -eq 0 ]; then
"-> no files to update -> no psa update" if ! fetch_customer_updates; then
update_psa_false_alarm \ log_error "$func:${LINENO}: fetch no data for $customer_id"\
"update request, but no change in $CUSTOMER_REPOSITORY_PATH" "-> no files to update -> no psa update"
# TODO update_psa_false_alarm \
"update request, but no change in $CUSTOMER_REPOSITORY_PATH"
# TODO
fi
fi fi
update_psa_pull_customer_repository # message to ISMAS update_psa_pull_customer_repository # message to ISMAS