chore: adding error handling.

This commit is contained in:
Robert Wlodarczyk 2022-07-16 08:38:01 -07:00
parent c685687367
commit 84265413ee

View File

@ -7,6 +7,11 @@ CRONTAB_FILE=/etc/crontabs/docker
# For local testing only. # For local testing only.
#HOME_DIR=. #HOME_DIR=.
if [ -z "${HOME_DIR}" ]; then
echo "HOME_DIR not set."
exit 1
fi
# Ensure dir exist - in case of volume mapping. # Ensure dir exist - in case of volume mapping.
mkdir -p "${HOME_DIR}"/jobs "${HOME_DIR}"/projects mkdir -p "${HOME_DIR}"/jobs "${HOME_DIR}"/projects