From e00a75980bfc634b78e4a5d7f03f9243af86a131 Mon Sep 17 00:00:00 2001 From: ManuA <17761850+all-solutions@users.noreply.github.com> Date: Tue, 6 Feb 2024 11:40:20 +0100 Subject: [PATCH] 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. --- 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 a8e43c8..c1e088c 100755 --- a/alexa_remote_control.sh +++ b/alexa_remote_control.sh @@ -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