Do not blow up when tmp directory already exists. No issue #
authorTom Clegg <tom@curoverse.com>
Tue, 26 Aug 2014 03:26:38 +0000 (23:26 -0400)
committerTom Clegg <tom@curoverse.com>
Tue, 26 Aug 2014 03:26:38 +0000 (23:26 -0400)
sdk/cli/bin/crunch-job

index 6eb99567494e09d3161baf4990403c8f0c91a84b..395ea2ac67b8babc056550da1aea5bf710bf2e57 100755 (executable)
@@ -1504,7 +1504,8 @@ my $commit = $ENV{"CRUNCH_SRC_COMMIT"};
 my $repo = $ENV{"CRUNCH_SRC_URL"};
 my $task_work = $ENV{"TASK_WORK"};
 
-make_path $task_work or die "Failed to create temporary working directory ($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;