From 13f1e76cc935fb6e8e4ddbb72238be078ea2f9b1 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Fri, 27 Oct 2023 09:04:35 +1100 Subject: [PATCH] fix: cronjob cleanup array (#248) --- legacy/build-deploy-docker-compose.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/build-deploy-docker-compose.sh b/legacy/build-deploy-docker-compose.sh index d1666185..cec16b86 100755 --- a/legacy/build-deploy-docker-compose.sh +++ b/legacy/build-deploy-docker-compose.sh @@ -1694,7 +1694,7 @@ MATCHED_CRONJOB=false DELETE_CRONJOBS=() # NATIVE_CRONJOB_CLEANUP_ARRAY is calculated in a prior step, when cronjobs are generated by the build-deploy-tool, this will need to be re-calculated using the tool for SINGLE_NATIVE_CRONJOB in $CURRENT_CRONJOBS; do - for CLEANUP_NATIVE_CRONJOB in $NATIVE_CRONJOB_CLEANUP_ARRAY; do + for CLEANUP_NATIVE_CRONJOB in ${NATIVE_CRONJOB_CLEANUP_ARRAY[@]}; do if [ "${SINGLE_NATIVE_CRONJOB}" == "${CLEANUP_NATIVE_CRONJOB}" ]; then MATCHED_CRONJOB=true continue