Skip to content

Commit

Permalink
Merge pull request #637 from miguelpmachado/hotfix/assembly_ncbi_url_…
Browse files Browse the repository at this point in the history
…check

Check ftp or https url starts
  • Loading branch information
DerrickWood authored May 22, 2023
2 parents 013c36f + 002570c commit 84e851b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/rsync_from_ncbi.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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://${qm_server}${qm_server_path}/##)) {
if (! ($full_path =~ s#^(?:ftp|https)://${qm_server}${qm_server_path}/##)) {
die "$PROG: unexpected FTP path (new server?) for $ftp_path\n";
}
$manifest{$full_path} = $taxid;
Expand Down

0 comments on commit 84e851b

Please sign in to comment.