From 79e42e3808e3c9cb80f4b2b42f9f09902366b2ca Mon Sep 17 00:00:00 2001 From: Olaf Bohlen <olbohlen@eenfach.de> Date: Mon, 02 Jan 2023 14:51:58 +0100 Subject: [PATCH] cosmetics --- receipt-processor.ksh | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/receipt-processor.ksh b/receipt-processor.ksh index b7cbe21..1d865fe 100644 --- a/receipt-processor.ksh +++ b/receipt-processor.ksh @@ -57,6 +57,8 @@ # now that we have a list of updated receipts, we are going to process them for r in ${updatedreceipts}; do printf "\n\nNew receipt found: %s\n" "${receiptname[${r}]}" + printf "--------------------------------------------------------------------------\n\n" + # get the name for the UID and fetch only that object receipt=$(eval curl -XGET ${CURLOPTS} '${APIURL}/apis/de.eenfach.olbohlen/v1/namespaces/${NAMESPACE}/cookiereceipts/${receiptname[${r}]}' ) @@ -104,7 +106,7 @@ num_steps=$(echo "${receipt}" | jq .spec.steps\[\].order | wc -l) # now let's iterate over that - printf "Processing the instructions:\n" + printf "\n\nProcessing the instructions:\n" i=1 while [ ${i} -lt ${num_steps} ]; do instruction=$( echo "${receipt}" | jq '.spec.steps[] | select(.order == '${i}') | { instruction } | join (" ")' ) @@ -115,7 +117,8 @@ sleep 1 i=$(( ${i} + 1 )) done - printf "Done with this receipt.\n\n" + printf "\nDone with this receipt." + printf "\n=======================\n\n" done done -- Gitblit v1.9.3