mirror of
https://github.com/thorsten-gehrig/alexa-remote-control.git
synced 2024-11-22 08:49:02 +01:00
Changed jq command arg for jq 1.4 compatibility
the notion "-rc" has been rewritten to "-r -c"
This commit is contained in:
parent
f05854f123
commit
68cc917915
@ -512,7 +512,7 @@ if [ -n "${SEQUENCECMD}" ]
|
|||||||
rm -f "${TMP}/.alexa.automation"
|
rm -f "${TMP}/.alexa.automation"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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"
|
rm -f "${TMP}/.alexa.automation"
|
||||||
|
|
||||||
echo "Running routine: ${UTTERANCE}"
|
echo "Running routine: ${UTTERANCE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user