SionBayliss / PIRATE

A toolbox for pangenome analysis and threshold evaluation.
GNU General Public License v3.0
89 stars 29 forks source link

possible bug with unlinking files #9

Closed tseemann closed 5 years ago

tseemann commented 5 years ago
        # remove previous test files.
        unlink "$output_dir/modified_gffs/HO_5096_0412_test.gff" if "$output_dir/modifi
ed_gffs/HO_5096_0412_test.gff";

did you mean if -f "$output/..." or -e ? because the string will always be true, you want to test the file?

SionBayliss commented 5 years ago

--check now writes to a temp directory so these lines have been removed.