Commit 03423477 authored by TomKellyGenetics's avatar TomKellyGenetics
Browse files

fix keep

parent 0c16416a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -761,7 +761,7 @@ if [ -d $crIN ]
            then
            echo "warning: converted $read file already exists"
        fi
        if [ ! $keep ]
        if [[ ! $keep ]]
            then
            echo "file $crIN/$read removed"
            rm -rf $crIN/$read
@@ -776,7 +776,7 @@ if [ -d $crIN ]
            then
            echo "warning: converted $read file already exists"
        fi
        if [ ! $keep ]
        if [[ ! $keep ]]
            then
            echo "file $crIN/$read removed"
            rm -rf $crIN/$read
@@ -796,7 +796,7 @@ for fq in "${read1[@]}"; do
    if [[ $fq == *'.gz' ]]; then
        echo "    unzipping and redirecting $fq file..."
        gunzip -c $fq > $to
    elif [ ! $keep ]
    elif [[ ! $keep ]]
        then
        echo "    redirecting $fq file..."
        cp $fq $to
@@ -823,7 +823,7 @@ for fq in "${read2[@]}"; do
    if [[ $fq == *'.gz' ]]; then
        echo "    unzipping and redirecting $fq file..."
        gunzip -c $fq > $to
    elif [ ! $keep ]
    elif [[ ! $keep ]]
        then
        echo "    redirecting $fq file..."
        cp $fq $to