From 14fb9c4e682b55878c0eac7c7b2815ac6574f04e Mon Sep 17 00:00:00 2001 From: Denis Komarov Date: Thu, 26 Mar 2026 11:58:33 +0100 Subject: [PATCH] Fixing #81 by adding https download if http fails --- fastq_screen | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fastq_screen b/fastq_screen index a8cd364..c5511b3 100755 --- a/fastq_screen +++ b/fastq_screen @@ -2467,7 +2467,12 @@ sub get_genomes{ #to a permanent location on the webserver, when more space is made available. my $location_file = 'www.bioinformatics.babraham.ac.uk/projects/fastq_screen/genome_locations.txt'; my $command = "wget --no-check-certificate $location_file"; - !system($command) or die "Could not run command '$command'\n"; + if(system($command)) { + warn "HTTP download failed, retrying with HTTPS...\n"; + $location_file = 'https://www.bioinformatics.babraham.ac.uk/projects/fastq_screen/genome_locations.txt'; + $command = "wget --no-check-certificate $location_file"; + !system($command) or die "Could not run command '$command'\n"; + } $location_file = 'genome_locations.txt'; open(LOCATION, '<', $location_file) or die "Could not open '$location_file' : $!"; scalar if $bisulfite; #Use second line in file if --bisulfite mode