Skip to content

Commit a50cc4f

Browse files
authored
Update allsky.sh: Handle return code of ALLSKY_EXIT_STOP
1 parent 6287f92 commit a50cc4f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

allsky.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,15 @@ if [[ ${RETCODE} -eq ${ALLSKY_EXIT_OK} ]]; then
450450
doExit "${ALLSKY_EXIT_OK}" ""
451451
fi
452452

453+
if [[ ${RETCODE} -eq ${ALLSKY_EXIT_STOP} ]]; then
454+
set_allsky_status "${ALLSKY_STATUS_STOPPED}"
455+
# Give it time to finish uploading and processing last image.
456+
sleep 5
457+
echo "Stopping Allsky after set number of images."
458+
stop_Allsky
459+
exit 0
460+
fi
461+
453462
if [[ ${RETCODE} -eq ${ALLSKY_EXIT_RESTARTING} ]]; then
454463
if [[ ${ON_TTY} == "true" ]]; then
455464
echo "*** Can restart Allsky now. ***"

0 commit comments

Comments
 (0)