Skip to content

Commit

Permalink
Check if settings file exists on SGE before running it (issue marbl#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Sep 11, 2017
1 parent 651b37b commit 9374676
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pipelines/canu/Execution.pm
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,9 @@ sub submitScript ($$) {
print F "# For the record, interactive logins (qlogin) DO set the environment.\n" if (getGlobal("gridEngine") eq "SGE");
print F "\n";
print F "if [ \"x\$SGE_ROOT\" != \"x\" ]; then \n" if (getGlobal("gridEngine") eq "SGE");
print F " . \$SGE_ROOT/\$SGE_CELL/common/settings.sh\n" if (getGlobal("gridEngine") eq "SGE");
print F " if [ -e \$SGE_ROOT/\$SGE_CELL/common/settings.sh ]; then \n" if (getGlobal("gridEngine") eq "SGE");
print F " . \$SGE_ROOT/\$SGE_CELL/common/settings.sh\n" if (getGlobal("gridEngine") eq "SGE");
print F " fi\n" if (getGlobal("gridEngine") eq "SGE");
print F "fi\n" if (getGlobal("gridEngine") eq "SGE");
print F "\n";
print F "# On the off chance that there is a pathMap, and the host we\n";
Expand Down

0 comments on commit 9374676

Please sign in to comment.