cosmetics

This commit is contained in:
Olaf Bohlen
2023-01-02 14:51:58 +01:00
parent 30cc66103c
commit 79e42e3808

View File

@@ -57,6 +57,8 @@ while sleep 5; do
# 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 @@ while sleep 5; do
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 @@ while sleep 5; do
sleep 1
i=$(( ${i} + 1 ))
done
printf "Done with this receipt.\n\n"
printf "\nDone with this receipt."
printf "\n=======================\n\n"
done
done