Skip to content

Commit

Permalink
feat(apto): reject on inability to compute timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
streambinder committed Dec 7, 2024
1 parent 79cc754 commit ca58fc6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions media/apto/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ while read -r fname <&3; do
else # input
final_timestamp="${input_timestamp}"
fi

# reject if we aren't able to compute the right timestamp
if [ "${final_timestamp}" = "${UNKNOWN_DATE}" ]; then
echo "Can't compute the right best timestamp to use for ${basename}: exiting"
exit 1
fi

echo "Chosen date: ${final_timestamp}"

# compute timestamp formats
Expand Down

0 comments on commit ca58fc6

Please sign in to comment.