From 30cc66103c73e7fe26cb9474bc1f569c1db57424 Mon Sep 17 00:00:00 2001 From: Olaf Bohlen <olbohlen@eenfach.de> Date: Mon, 02 Jan 2023 14:46:31 +0100 Subject: [PATCH] missing brace --- receipt-processor.ksh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/receipt-processor.ksh b/receipt-processor.ksh index 2e961d6..b7cbe21 100644 --- a/receipt-processor.ksh +++ b/receipt-processor.ksh @@ -67,7 +67,7 @@ scale=Fahrenheit fi - temperature=$( echo ${receipt} | jq -r .spec.temperature ) + temperature=$( echo "${receipt}" | jq -r .spec.temperature ) preheat_b=$( echo "${receipt}" | jq -r .spec.preheat ) if [ "x${preheat_b}" == "xtrue" ]; then @@ -107,7 +107,7 @@ printf "Processing the instructions:\n" i=1 while [ ${i} -lt ${num_steps} ]; do - instruction=$( echo "${receipt}" | jq '.spec.steps[] | select(.order == '${i}') | { instruction | join (" ")' ) + instruction=$( echo "${receipt}" | jq '.spec.steps[] | select(.order == '${i}') | { instruction } | join (" ")' ) printf "Step %i/%i: %s..." ${i} ${num_steps} "${instruction}" sleep $(( ${RANDOM} % 6 + 1 )) -- Gitblit v1.9.3