You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/05/05 13:55:59 UTC
(tooling-trusted-release) branch main updated: Improve the curl and wget commands to download a release
This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new 02bdb3f Improve the curl and wget commands to download a release
02bdb3f is described below
commit 02bdb3f5779db2250297d83958972bedda8ec59b
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Mon May 5 14:55:36 2025 +0100
Improve the curl and wget commands to download a release
---
atr/templates/download-all.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/atr/templates/download-all.html b/atr/templates/download-all.html
index 28096e0..28204d7 100644
--- a/atr/templates/download-all.html
+++ b/atr/templates/download-all.html
@@ -94,7 +94,7 @@
<p>You can download all of the files in this release using curl with the following command:</p>
<!-- TODO: Add a button to copy the command to the clipboard -->
<pre class="bg-light border rounded p-3 mb-3">
-curl -fsS https://{{ server_domain }}{{ as_url(routes.download.sh_selected, project_name=release.project.name, version_name=release.version) }} | sh
+curl{% if server_domain.startswith("127.0.0.1") %} --insecure{% endif %} -fsS https://{{ server_domain }}{{ as_url(routes.download.sh_selected, project_name=release.project.name, version_name=release.version) }} |{% if server_domain.startswith("127.0.0.1") %} CURL_EXTRA=--insecure{% endif %} sh
</pre>
<p>
This downloads the files into the <em>current directory</em>. Ensure that you create a new empty directory, and change to it, before running the command. The script requires curl and a POSIX compliant version of sh. It works by downloading a POSIX complaint shell script straight into your shell. You can of course <a href="{{ as_url(routes.download.sh_selected, project_name=release.project.name, version_name=release.version) }}">download the script</a> and audit it before running it.
@@ -111,7 +111,7 @@ rsync -av -e 'ssh -p 2222' {{ asf_id }}@{{ server_domain }}:/{{ release.project.
<h3 id="download-wget" class="mt-4">Using wget</h3>
<p>You can download all of the files in this release using wget with the following command:</p>
<pre class="bg-light border rounded p-3 mb-3">
-wget -r -np -nH --cut-dirs=3{% if server_domain == "127.0.0.1" %} --no-check-certificate{% endif %} https://{{ server_domain }}{{ as_url(routes.download.path_empty, project_name=release.project.name, version_name=release.version) }}
+wget -r -np -nH --cut-dirs=4 --default-page=.index.html{% if server_domain.startswith("127.0.0.1") %} --no-check-certificate{% endif %} https://{{ server_domain }}{{ as_url(routes.download.path_empty, project_name=release.project.name, version_name=release.version) }}
</pre>
<p>
This downloads the files into the <em>current directory</em>. Ensure that you create a new empty directory, and change to it, before running the command.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org