From 01bdc42bd90a64705e75faddbab4807eb355c0e4 Mon Sep 17 00:00:00 2001 From: xonq Date: Thu, 4 Jul 2024 12:01:22 -0700 Subject: [PATCH] implement @togop's fix from issue 518 --- scripts/rsync_from_ncbi.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rsync_from_ncbi.pl b/scripts/rsync_from_ncbi.pl index bc26c15..5ab4699 100755 --- a/scripts/rsync_from_ncbi.pl +++ b/scripts/rsync_from_ncbi.pl @@ -43,7 +43,7 @@ my $full_path = $ftp_path . "/" . basename($ftp_path) . $suffix; # strip off server/leading dir name to allow --files-from= to work w/ rsync # also allows filenames to just start with "all/", which is nice - if (! ($full_path =~ s#^(?:ftp|https)://${qm_server}${qm_server_path}/##)) { + if (! ($full_path =~ s#^((ht|f)tp(s?))://${qm_server}${qm_server_path}/##)) { die "$PROG: unexpected FTP path (new server?) for $ftp_path\n"; } $manifest{$full_path} = $taxid;