Log if email script not found. Correctly call completed_mail.sh from project root
This commit is contained in:
parent
4b9efb7d80
commit
fefeefa96e
|
@ -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}"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue