Log if email script not found. Correctly call completed_mail.sh from project root

This commit is contained in:
Matt McWilliams 2023-06-30 14:10:55 -04:00
parent 4b9efb7d80
commit fefeefa96e
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,8 @@ fi
if [ -f ./scripts/claim_mail.sh ]; then if [ -f ./scripts/claim_mail.sh ]; then
bash ./scripts/claim_mail.sh "${JSON}" bash ./scripts/claim_mail.sh "${JSON}"
else
echo "No email script, not sending."
fi fi
bash ./scripts/train.sh "${JSON}" bash ./scripts/train.sh "${JSON}"

View File

@ -86,6 +86,11 @@ curl -s -X POST \
-F "model=@${MODELPATH}" \ -F "model=@${MODELPATH}" \
"${YOLO_WEB_URL}/job/${ID}" "${YOLO_WEB_URL}/job/${ID}"
deactivate
cd ..
if [ -f ./scripts/completed_mail.sh ]; then if [ -f ./scripts/completed_mail.sh ]; then
bash ./scripts/completed_mail.sh "${JSON}" bash ./scripts/completed_mail.sh "${JSON}"
else
echo "No email script, not sending"
fi fi