PR #177 from all-solutions/master

changed /tmp/ to ${TMP} in last_alexa()
This commit is contained in:
Alex 2024-02-06 16:42:30 +01:00 committed by GitHub
commit ceabd042c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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