mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2026-10-26 19:38:55 +01:00
chore: adding error handling.
This commit is contained in:
1 parent
c685687367
commit
84265413ee
1 file changed
+5
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user