Skip to content

Commit

Permalink
Merge pull request #2868 from thomasjacquin/timelapse.sh-use-unique-n…
Browse files Browse the repository at this point in the history
…ames-for-sequence-directories

Update timelapse.sh: use unique names for sequence directories
  • Loading branch information
EricClaeys authored Jul 10, 2023
2 parents 4109437 + 8c02cd3 commit a50ef0f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions scripts/timelapse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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}"

Expand Down

0 comments on commit a50ef0f

Please sign in to comment.