Skip to content

Commit

Permalink
Update timelapse.sh: bug fix with KEEP_SEQUENCE
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Sep 25, 2023
1 parent 6f4c2f6 commit 5d7f7d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/timelapse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ TMP="${ALLSKY_TMP}/timelapseTMP.txt"
[[ ${IS_MINI} == "false" ]] && : > "${TMP}" # Only create when NOT doing mini-timelapses

KEEP_SEQUENCE="$( settings ".timelapsekeepsequence" )"
if [[ ${KEEP_SEQUENCE} == "false" ]]; then
if [[ ${KEEP_SEQUENCE} == "false" || ! -d ${SEQUENCE_DIR} ]]; then
rm -fr "${SEQUENCE_DIR}"
mkdir -p "${SEQUENCE_DIR}"

Expand Down Expand Up @@ -247,8 +247,8 @@ if [[ ${KEEP_SEQUENCE} == "false" ]]; then
exit 1
fi
else
echo -e "${ME} ${YELLOW}"
echo "Not regenerating sequence because KEEP_SEQUENCE is enabled."
echo -en "${ME} ${YELLOW}"
echo -n "Not regenerating sequence because 'Keep Timelapse Sequence' is enabled."
echo -e "${NC}"
fi

Expand Down

0 comments on commit 5d7f7d0

Please sign in to comment.