Skip to content
Snippets Groups Projects
Unverified Commit 7f1f45a9 authored by Ruben Vorderman's avatar Ruben Vorderman Committed by GitHub
Browse files

Merge pull request #309 from biowdl/miniwdl

Fallback to copying when hardlinking does not work
parents 69a390a4 1e7a3b3c
No related branches found
No related tags found
No related merge requests found
...@@ -332,7 +332,7 @@ task Index { ...@@ -332,7 +332,7 @@ task Index {
if [ ! -f ~{outputPath} ] if [ ! -f ~{outputPath} ]
then then
mkdir -p "$(dirname ~{outputPath})" mkdir -p "$(dirname ~{outputPath})"
ln ~{bamFile} ~{outputPath} ln ~{bamFile} ~{outputPath} || cp ~{bamFile} ~{outputPath}
fi fi
samtools index ~{outputPath} ~{bamIndexPath} samtools index ~{outputPath} ~{bamIndexPath}
' '
...@@ -531,7 +531,7 @@ task Tabix { ...@@ -531,7 +531,7 @@ task Tabix {
mkdir -p "$(dirname ~{outputFilePath})" mkdir -p "$(dirname ~{outputFilePath})"
if [ ! -f ~{outputFilePath} ] if [ ! -f ~{outputFilePath} ]
then then
ln ~{inputFile} ~{outputFilePath} ln ~{inputFile} ~{outputFilePath} || cp ~{inputFile} ~{outputFilePath}
fi fi
tabix ~{outputFilePath} -p ~{type} tabix ~{outputFilePath} -p ~{type}
} }
......
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