From 8c02cd32891bf70d1e99dd3d3ac8958ea9a7ea04 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Mon, 10 Jul 2023 02:24:36 -0500 Subject: [PATCH] Update timelapse.sh: use unique names for sequence directories This allows multiple different timelapse creations at once. --- scripts/timelapse.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/timelapse.sh b/scripts/timelapse.sh index 36e7d6d04..f78897927 100755 --- a/scripts/timelapse.sh +++ b/scripts/timelapse.sh @@ -133,9 +133,9 @@ if [[ ${LOCK} == "true" ]]; then --caused-by "${CAUSED_BY}" ; then exit 5 fi - SEQUENCE_DIR="${ALLSKY_TMP}/sequence-lock-timelapse" + SEQUENCE_DIR="${ALLSKY_TMP}/sequence-lock-timelapse-$$" else - SEQUENCE_DIR="${ALLSKY_TMP}/sequence-timelapse" + SEQUENCE_DIR="${ALLSKY_TMP}/sequence-timelapse-$$" PID_FILE="" fi @@ -278,7 +278,14 @@ fi # timelapse is uploaded via generateForDay.sh (usually via endOfNight.sh), which called us. -[[ ${DEBUG} -ge 2 ]] && echo -e "${ME}: ${GREEN}Timelapse in ${OUTPUT_FILE}${NC}" +if [[ ${DEBUG} -ge 2 ]]; then + if [[ ${IS_MINI} == "true" ]]; then + M="Mini t" + else + M="T" + fi + echo -e "${ME}: ${GREEN}${M}imelapse in ${OUTPUT_FILE}${NC}" +fi [[ -n ${PID_FILE} ]] && rm -f "${PID_FILE}"