Olaf Bohlen
2023-01-02 30cc66103c73e7fe26cb9474bc1f569c1db57424
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 ))