From 103b94f96ef07460165c104559c1311a259dac70 Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Wed, 24 Aug 2022 03:39:25 +0200 Subject: [PATCH] Display all files. (#20917) Co-authored-by: Lunny Xiao Co-authored-by: techknowlogick --- templates/package/content/generic.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/package/content/generic.tmpl b/templates/package/content/generic.tmpl index 045ff7d08..2948d9eb0 100644 --- a/templates/package/content/generic.tmpl +++ b/templates/package/content/generic.tmpl @@ -4,7 +4,8 @@
-
curl {{AppUrl}}api/packages/{{.PackageDescriptor.Owner.Name}}/generic/{{.PackageDescriptor.Package.Name}}/{{.PackageDescriptor.Version.Version}}/{{(index .PackageDescriptor.Files 0).File.Name}}
+
{{range .PackageDescriptor.Files}}curl {{AppUrl}}api/packages/{{$.PackageDescriptor.Owner.Name}}/generic/{{$.PackageDescriptor.Package.Name}}/{{$.PackageDescriptor.Version.Version}}/{{.File.Name}}
+{{end}}