missing brace

This commit is contained in:
Olaf Bohlen
2023-01-02 14:46:31 +01:00
parent b6d772f47f
commit 30cc66103c

View File

@@ -67,7 +67,7 @@ while sleep 5; do
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 @@ while sleep 5; do
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 ))