Skip to content
Snippets Groups Projects
Unverified Commit d484cf9b authored by David Hoese's avatar David Hoese
Browse files

Change work directory creation

parent 8e0f62fc
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,12 @@ day_before() {
}
work_dir() {
mktemp -d --tmpdir="$WORKDIR" "work_$1_XXXXXXXXXX" || oops "Could not create work directory: $1"
d=$(mktemp -d --tmpdir="$WORKDIR" "work_$1_XXXXXXXXXX")
if [ $? -ne 0 ]; then
oops "Could not create temporary work directory: $1"
fi
chmod 777 "$d" || oops "Could not change permissions of work directory: $d"
echo $d
}
cache_level_00_file() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment