diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2023-12-12 00:19:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 07:19:30 +0800 |
commit | 4b0940cb9ff3287038a1f8aeab74b68b82179c4c (patch) | |
tree | 21ee6daf28417142d8235e0312f123c9bf2e038a /templates | |
parent | f2a309e6c81f9ce0de5346e49efbc98fbd20e54b (diff) | |
download | gitea-4b0940cb9ff3287038a1f8aeab74b68b82179c4c.tar.gz gitea-4b0940cb9ff3287038a1f8aeab74b68b82179c4c.zip |
Let `curl` write the content to file (#28427)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/package/content/generic.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/package/content/generic.tmpl b/templates/package/content/generic.tmpl index ba4df0a57d..05aa4aecad 100644 --- a/templates/package/content/generic.tmpl +++ b/templates/package/content/generic.tmpl @@ -6,7 +6,7 @@ <label>{{svg "octicon-terminal"}} {{ctx.Locale.Tr "packages.generic.download"}}</label> <div class="markup"><pre class="code-block"><code> {{- range .PackageDescriptor.Files -}} -curl <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/generic/{{$.PackageDescriptor.Package.Name}}/{{$.PackageDescriptor.Version.Version}}/{{.File.Name}}"></gitea-origin-url> +curl -OJ <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/generic/{{$.PackageDescriptor.Package.Name}}/{{$.PackageDescriptor.Version.Version}}/{{.File.Name}}"></gitea-origin-url> {{end -}} </code></pre></div> </div> |