summaryrefslogtreecommitdiffstats
path: root/cron-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-01-13 16:01:06 +0000
committerTed Trask <ttrask01@yahoo.com>2009-01-13 16:01:06 +0000
commit5ec7a43c6f0a6cd1369da101fa0e3f1f12d99973 (patch)
tree89b5c319d2f14352e25260d5fbf3ec67f85ca636 /cron-model.lua
parent9dfc491513676fa005f68cc764c4db37f0b3094f (diff)
downloadacf-alpine-baselayout-5ec7a43c6f0a6cd1369da101fa0e3f1f12d99973.tar.bz2
acf-alpine-baselayout-5ec7a43c6f0a6cd1369da101fa0e3f1f12d99973.tar.xz
Modified fs.lua to survive nil parameters. Added create_directory and used within create_file and write_file. Reviewed each read_file call to make sure handles nil return value.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1677 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'cron-model.lua')
-rw-r--r--cron-model.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/cron-model.lua b/cron-model.lua
index f900302..65d4393 100644
--- a/cron-model.lua
+++ b/cron-model.lua
@@ -107,9 +107,6 @@ function create_job(newjob)
end
if success then
- if not posix.stat(baseurl..newjob.value.period.value) then
- posix.mkdir(baseurl..newjob.value.period.value)
- end
fs.create_file(baseurl..newjob.value.period.value.."/"..newjob.value.name.value)
else
newjob.errtxt = "Failed to create new job"