Skip to content

Commit

Permalink
split files existence check to individual checks to avoid repeated li…
Browse files Browse the repository at this point in the history
…nking problems
  • Loading branch information
AnnSeidel committed Jul 11, 2019
1 parent da18dca commit 64be551
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions data/assembler.sh
Expand Up @@ -170,6 +170,9 @@ fi
# create fasta output
if notExists "${RESULT}_only_assembled"; then
ln -s "${RESULT}" "${RESULT}_only_assembled"
fi

if notExists "${RESULT}_only_assembled.dbtype"; then
ln -s "${RESULT}.dbtype" "${RESULT}_only_assembled.dbtype"
fi

Expand Down
3 changes: 3 additions & 0 deletions data/hybridassembler.sh
Expand Up @@ -116,6 +116,9 @@ fi

if notExists "${RESULT_NUCL}_only_assembled"; then
ln -s "${RESULT_NUCL}" "${RESULT_NUCL}_only_assembled"
fi

if notExists "${RESULT_NUCL}_only_assembled.dbtype"; then
ln -s "${RESULT_NUCL}.dbtype" "${RESULT_NUCL}_only_assembled.dbtype"
fi

Expand Down
5 changes: 4 additions & 1 deletion data/nuclassembler.sh
Expand Up @@ -77,7 +77,10 @@ fi
# create fasta output
if notExists "${RESULT}_only_assembled"; then
ln -s "${RESULT}" "${RESULT}_only_assembled"
ln -s "${RESULT},dbtype" "${RESULT}_only_assembled.dbtype"
fi

if notExists "${RESULT}_only_assembled.dbtype"; then
ln -s "${RESULT}.dbtype" "${RESULT}_only_assembled.dbtype"
fi

if notExists "${RESULT}_only_assembled_h"; then
Expand Down

0 comments on commit 64be551

Please sign in to comment.