From b47837d194d26a268ac054a07fc33fa0db6d6125 Mon Sep 17 00:00:00 2001 From: ocaisa Date: Wed, 7 Aug 2024 15:54:09 +0200 Subject: [PATCH 1/4] Add `-L` option to `curl` command Fixes #455 --- _episodes/16-transferring-files.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_episodes/16-transferring-files.md b/_episodes/16-transferring-files.md index 4286ce9a..96aff648 100644 --- a/_episodes/16-transferring-files.md +++ b/_episodes/16-transferring-files.md @@ -56,8 +56,10 @@ your local machine, using the URL of the current codebase: > > ``` > > {{ site.local.prompt }} wget -O amdahl.tar.gz https://github.com/hpc-carpentry/amdahl/tarball/main > > # or -> > {{ site.local.prompt }} curl -o amdahl.tar.gz https://github.com/hpc-carpentry/amdahl/tarball/main +> > {{ site.local.prompt }} curl -o amdahl.tar.gz -L https://github.com/hpc-carpentry/amdahl/tarball/main > > ``` +> > +> > The `-L` option to `curl` tells it to follow URL redirects (which `wget` does by default). > > {: .language-bash} > {: .solution} {: .challenge} From dfa22e6dca57603b0c4e954b655b9960f9da82c7 Mon Sep 17 00:00:00 2001 From: ocaisa Date: Wed, 7 Aug 2024 16:24:09 +0200 Subject: [PATCH 2/4] Try again --- _episodes/16-transferring-files.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_episodes/16-transferring-files.md b/_episodes/16-transferring-files.md index 96aff648..b827d720 100644 --- a/_episodes/16-transferring-files.md +++ b/_episodes/16-transferring-files.md @@ -60,6 +60,7 @@ your local machine, using the URL of the current codebase: > > ``` > > > > The `-L` option to `curl` tells it to follow URL redirects (which `wget` does by default). +> > > > {: .language-bash} > {: .solution} {: .challenge} From ff7e430e72a5669e60555f88ac9380a6bf73b857 Mon Sep 17 00:00:00 2001 From: ocaisa Date: Wed, 7 Aug 2024 16:25:20 +0200 Subject: [PATCH 3/4] Lint --- _episodes/16-transferring-files.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_episodes/16-transferring-files.md b/_episodes/16-transferring-files.md index b827d720..ccc3c0b0 100644 --- a/_episodes/16-transferring-files.md +++ b/_episodes/16-transferring-files.md @@ -60,7 +60,7 @@ your local machine, using the URL of the current codebase: > > ``` > > > > The `-L` option to `curl` tells it to follow URL redirects (which `wget` does by default). -> > +> > > > {: .language-bash} > {: .solution} {: .challenge} From 0a7320a2cf8a0fedfc702fa05de126a0cbbc6e1c Mon Sep 17 00:00:00 2001 From: ocaisa Date: Wed, 7 Aug 2024 16:47:33 +0200 Subject: [PATCH 4/4] Whoops --- _episodes/16-transferring-files.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_episodes/16-transferring-files.md b/_episodes/16-transferring-files.md index ccc3c0b0..f0d6074f 100644 --- a/_episodes/16-transferring-files.md +++ b/_episodes/16-transferring-files.md @@ -58,10 +58,8 @@ your local machine, using the URL of the current codebase: > > # or > > {{ site.local.prompt }} curl -o amdahl.tar.gz -L https://github.com/hpc-carpentry/amdahl/tarball/main > > ``` -> > -> > The `-L` option to `curl` tells it to follow URL redirects (which `wget` does by default). -> > > > {: .language-bash} +> > The `-L` option to `curl` tells it to follow URL redirects (which `wget` does by default). > {: .solution} {: .challenge}