mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-04-19 20:59:56 +02:00
chore: adding error handling.
This commit is contained in:
parent
c685687367
commit
84265413ee
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user