Skip to content

Commit

Permalink
generateForDay.sh: upload message fix
Browse files Browse the repository at this point in the history
Only show the "upload" message if file creation worked, i.e., $EXIT_CODE = 0.
  • Loading branch information
EricClaeys authored Dec 25, 2021
1 parent 9c89780 commit 9502aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generateForDay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ if [ "${DO_TIMELAPSE}" = "true" ] ; then
fi


if [ "${TYPE}" = "GENERATE" -a ${SILENT} = "false" ]; then
if [ "${TYPE}" = "GENERATE" -a ${SILENT} = "false" -a ${EXIT_CODE} -eq 0 ]; then
ARGS=""
[ "${DO_KEOGRAM}" = "true" ] && ARGS="${ARGS} -k"
[ "${DO_STARTRAILS}" = "true" ] && ARGS="${ARGS} -s"
Expand Down

0 comments on commit 9502aed

Please sign in to comment.