Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
Correctly remove BAM links on suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
SamStudio8 committed Jan 5, 2022
1 parent 1db3637 commit 7a3c425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/control/cog-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ if [ ! -f "$LINKS_OK_FLAG" ]; then
do
base=`basename $bam`
set +e
unlink $COG_PUBLISHED_DIR/latest/alignment/$bam
unlink $COG_PUBLISHED_DIR/latest/alignment/$base
ret=$?
unlink $COG_PUBLISHED_DIR/latest/alignment/$bam.bai
unlink $COG_PUBLISHED_DIR/latest/alignment/$base.bai
set -e

if [ $ret -eq 0 ]; then
Expand Down

0 comments on commit 7a3c425

Please sign in to comment.