Skip to content

Commit

Permalink
Merge pull request #951 from thomasjacquin/endOfNight-debugging-aid
Browse files Browse the repository at this point in the history
endOfNight.sh: aid in debugging
  • Loading branch information
linuxkidd authored Jan 21, 2022
2 parents a7c91da + 79d16ed commit ed9a9b5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/endOfNight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ if [[ ${KEOGRAM} == "true" ]]; then
echo -e "${ME}: ===== Generating Keogram"
"${ALLSKY_SCRIPTS}/generateForDay.sh" --silent -k ${DATE}
RET=$?
echo -e "${ME}: ===== Keogram complete"
if [[ ${UPLOAD_KEOGRAM} == "true" && ${RET} = 0 ]] ; then
"${ALLSKY_SCRIPTS}/generateForDay.sh" --upload -k ${DATE}
fi
Expand All @@ -50,7 +51,9 @@ fi
if [[ ${STARTRAILS} == "true" ]]; then
echo -e "${ME}: ===== Generating Startrails"
"${ALLSKY_SCRIPTS}/generateForDay.sh" --silent -s ${DATE}
if [[ ${UPLOAD_KEOGRAM} == "true" && ${?} = 0 ]] ; then
RET=$?
echo -e "${ME}: ===== Startrails complete"
if [[ ${UPLOAD_KEOGRAM} == "true" && ${RET} = 0 ]] ; then
"${ALLSKY_SCRIPTS}/generateForDay.sh" --upload -s ${DATE}
fi
fi
Expand All @@ -61,7 +64,9 @@ fi
if [[ ${TIMELAPSE} == "true" ]]; then
echo -e "${ME}: ===== Generating Timelapse"
"${ALLSKY_SCRIPTS}/generateForDay.sh" --silent -t ${DATE}
if [[ ${UPLOAD_VIDEO} == "true" && ${?} = 0 ]] ; then
RET=$?
echo -e "${ME}: ===== Timelapse complete"
if [[ ${UPLOAD_VIDEO} == "true" && ${RET} = 0 ]] ; then
"${ALLSKY_SCRIPTS}/generateForDay.sh" --upload -t ${DATE}
fi
fi
Expand Down

0 comments on commit ed9a9b5

Please sign in to comment.