mirror of
https://github.com/thorsten-gehrig/alexa-remote-control.git
synced 2024-11-22 00:39:03 +01:00
changed /tmp/ to ${TMP} in last_alexa()
If you change SET_TMP in the configuration, -lastalexa does not work due to the typo. Hardcoded path replaced by ${TMP} variable.
This commit is contained in:
parent
2b9606ff6a
commit
e00a75980b
@ -1167,7 +1167,7 @@ get_history()
|
||||
last_alexa()
|
||||
{
|
||||
get_history
|
||||
${JQ} -r '.customerHistoryRecords | sort_by(.timestamp) | reverse | .[0] | .recordKey' /tmp/.alexa.activity.json | cut -d'#' -f4 | xargs -i grep -m 1 {} ${DEVLIST}.txt
|
||||
${JQ} -r '.customerHistoryRecords | sort_by(.timestamp) | reverse | .[0] | .recordKey' ${TMP}/.alexa.activity.json | cut -d'#' -f4 | xargs -i grep -m 1 {} ${DEVLIST}.txt
|
||||
}
|
||||
#
|
||||
# last command or last command of a specific device
|
||||
|
Loading…
Reference in New Issue
Block a user