diff options
author | Daniel Baumann <daniel@debian.org> | 2011-08-04 13:19:37 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-08-04 13:19:37 +0200 |
commit | 1deaeb04e59c4afd76d69b53d4e9ffc2a9a7b930 (patch) | |
tree | db4b808d8ba46b69ffca5df390373e678546b9a3 /cron/live-build-cron-manual | |
parent | a7a2aa23c68fd4e3718b6cde6a72b47a3f49ace2 (diff) | |
download | vyos-live-build-1deaeb04e59c4afd76d69b53d4e9ffc2a9a7b930.tar.gz vyos-live-build-1deaeb04e59c4afd76d69b53d4e9ffc2a9a7b930.zip |
Adjusting check for target directory in live-build-cron scripts to fail if non-directories are used, thanks to Ben Armstrong <synrg@debian.org>.
Diffstat (limited to 'cron/live-build-cron-manual')
-rwxr-xr-x | cron/live-build-cron-manual | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cron/live-build-cron-manual b/cron/live-build-cron-manual index de38a3287..7a7c4a0db 100755 --- a/cron/live-build-cron-manual +++ b/cron/live-build-cron-manual @@ -31,7 +31,9 @@ Init () exit 0 fi - if [ -z "${LIVE_BUILD_CRON_MANUAL_DIRECTORY}" ] + mkdir -p "${LIVE_BUILD_CRON_MANUAL_DIRECTORY}" + + if [ ! -d "${LIVE_BUILD_CRON_MANUAL_DIRECTORY}" ] then echo "E: live-build-cron-manual directory not set." exit 1 |