Commit ef1733f6 authored by Jonathon Duerig's avatar Jonathon Duerig

Added a test to make the scratch directory if it doesn't already exist.

parent 649a0107
......@@ -313,6 +313,12 @@ if (! -e "$PROJROOT/$pid") {
}
}
if ($SCRATCHROOT && ! -e "$SCRATCHROOT/$pid") {
if (! -e "$SCRATCHROOT") {
if (! mkdir("$SCRATCHROOT", 0770)) {
fatal("Could not make a directory $SCRATCHROOT: $!");
}
}
if (! mkdir("$SCRATCHROOT/$pid", 0770)) {
fatal("Could not make directory $SCRATCHROOT/$pid: $!");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment