From 68cc9179151e8428f4929a77bc29167b80b3896a Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 23 Jan 2019 11:14:43 +0100 Subject: [PATCH] Changed jq command arg for jq 1.4 compatibility the notion "-rc" has been rewritten to "-r -c" --- alexa_remote_control.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alexa_remote_control.sh b/alexa_remote_control.sh index 3558557..e37c03b 100644 --- a/alexa_remote_control.sh +++ b/alexa_remote_control.sh @@ -512,7 +512,7 @@ if [ -n "${SEQUENCECMD}" ] rm -f "${TMP}/.alexa.automation" exit 1 fi - SEQUENCE=$(jq --arg utterance "${UTTERANCE}" -rc '.[] | select( .triggers[].payload.utterance == $utterance) | .sequence' "${TMP}/.alexa.automation" | sed 's/"/\\"/g' | sed "s/ALEXA_CURRENT_DEVICE_TYPE/${DEVICETYPE}/g" | sed "s/ALEXA_CURRENT_DSN/${DEVICESERIALNUMBER}/g" | sed "s/ALEXA_CUSTOMER_ID/${MEDIAOWNERCUSTOMERID}/g" | sed 's/ /_/g') + SEQUENCE=$(jq --arg utterance "${UTTERANCE}" -r -c '.[] | select( .triggers[].payload.utterance == $utterance) | .sequence' "${TMP}/.alexa.automation" | sed 's/"/\\"/g' | sed "s/ALEXA_CURRENT_DEVICE_TYPE/${DEVICETYPE}/g" | sed "s/ALEXA_CURRENT_DSN/${DEVICESERIALNUMBER}/g" | sed "s/ALEXA_CUSTOMER_ID/${MEDIAOWNERCUSTOMERID}/g" | sed 's/ /_/g') rm -f "${TMP}/.alexa.automation" echo "Running routine: ${UTTERANCE}"