3112: 404 error page default message while reporting issue
[arvados.git] / sdk / cli / bin / crunch-job
index 395ea2ac67b8babc056550da1aea5bf710bf2e57..638353d76fae023f4cf2c874c60cb7ea8c40dc2b 100755 (executable)
@@ -1504,8 +1504,10 @@ my $commit = $ENV{"CRUNCH_SRC_COMMIT"};
 my $repo = $ENV{"CRUNCH_SRC_URL"};
 my $task_work = $ENV{"TASK_WORK"};
 
-make_path $task_work;
--e $task_work or die "Failed to create temporary working directory ($task_work): $!";
+if ($task_work) {
+    make_path $task_work;
+    -e $task_work or die "Failed to create temporary working directory ($task_work): $!";
+}
 
 open L, ">", "$destdir.lock" or die "$destdir.lock: $!";
 flock L, LOCK_EX;