BioPerl dependency check always succeeds

In the dependency checking script, the bash builtin command -v is used for checking whether BioPerl is installed. However, this command will always succeed as long as Perl is installed, as it does not execute the command.

Consider changing e.g., github.com/abhijeetsingh1704/AcetoScan/blob/70f0428e4fffbff6af17ce5a83b26ce24abd0f29/AcetoScan_MacOS/scripts/AcetoScan_software_check.sh#L48 into if ! perl -MBio::SeqIO -e 'printf "%vdn", $Bio::SeqIO::VERSION, "n"' > /dev/null ; then.

It may not actually be necessary to execute any statement, so it could probably be shortened to if ! perl -MBio::SeqIO -e ''.

Read more here: Source link