summaryrefslogtreecommitdiff
path: root/cron/live-build-cron-images
diff options
context:
space:
mode:
Diffstat (limited to 'cron/live-build-cron-images')
-rwxr-xr-xcron/live-build-cron-images5
1 files changed, 4 insertions, 1 deletions
diff --git a/cron/live-build-cron-images b/cron/live-build-cron-images
index c76d96ed9..334d039f6 100755
--- a/cron/live-build-cron-images
+++ b/cron/live-build-cron-images
@@ -30,8 +30,11 @@ Init ()
exit 0
fi
- if [ -z "${LIVE_BUILD_CRON_IMAGES_DIRECTORY}" ]
+ mkdir -p "${LIVE_BUILD_CRON_IMAGES_DIRECTORY}"
+
+ if [ ! -d "${LIVE_BUILD_CRON_IMAGES_DIRECTORY}" ]
then
+ echo "E: live-build-cron-images directory not set."
exit 1
fi