| | |
| | | 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 |
| | |
| | | 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 )) |