lib/ncbi-blast-dbs.rake in ncbi-blast-dbs-0.0.1 vs lib/ncbi-blast-dbs.rake in ncbi-blast-dbs-0.0.2
- old
+ new
@@ -1,10 +1,11 @@
require 'net/ftp'
def download(url)
file = File.basename(url)
sh "wget -Nc #{url} && wget -Nc #{url}.md5 &&"\
- " md5sum -c #{file}.md5 && tar xvf #{file}"
+ " md5sum -c #{file}.md5 && tar xvf #{file}"\
+ " || rm #{file} #{file}.md5"
end
def databases
host, dir = 'ftp.ncbi.nlm.nih.gov', 'blast/db'
usr, pswd = 'anonymous', ENV['email']