From af25286821acf2ac655efbf0c5acaf1dbb38912b Mon Sep 17 00:00:00 2001 From: j23414 Date: Tue, 28 Mar 2023 14:03:02 -0700 Subject: [PATCH] fix: Use curl for downloading files Pick curl instead of detecting curl/wget as discussed in: https://github.com/nextstrain/ebola/pull/6#discussion_r1048835183 --- ingest/workflow/snakemake_rules/transform.smk | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/ingest/workflow/snakemake_rules/transform.smk b/ingest/workflow/snakemake_rules/transform.smk index c19eade6..3804978e 100644 --- a/ingest/workflow/snakemake_rules/transform.smk +++ b/ingest/workflow/snakemake_rules/transform.smk @@ -20,18 +20,7 @@ rule fetch_general_geolocation_rules: geolocation_rules_url=config["transform"]["geolocation_rules_url"], shell: """ - # (1) Pick curl or wget based on availability - if which curl > /dev/null; then - download_cmd="curl -fsSL --output" - elif which wget > /dev/null; then - download_cmd="wget -O" - else - echo "ERROR: Neither curl nor wget found. Please install one of them." - exit 1 - fi - - # (2) Fetch general geolocation rules - $download_cmd {output.general_geolocation_rules} {params.geolocation_rules_url} + curl -fsSL --output {output.general_geolocation_rules} {params.geolocation_rules_url} """