logo

ca-certificates

Unnamed repository; edit this file 'description' to name the repository. git clone https://anongit.hacktivis.me/git/ca-certificates.git/

fetch.jq (408B)


  1. # Copyright © 2024 Haelwenn (lanodan) Monnier <contact+ca-certificates@hacktivis.me>
  2. # SPDX-License-Identifier: 0BSD
  3. with_entries(
  4. .value =
  5. ("certs/" + .key + "/") as $dir
  6. | .value.roots
  7. | (
  8. map(
  9. {
  10. url: .,
  11. filename: ($dir + split("/")[-1])
  12. }
  13. | "wget -c -O " + (.filename | @sh) + " " + (.url | @sh)
  14. )
  15. | join("\n")
  16. )
  17. | "mkdir -p " + ($dir | @sh) + "\n" + .
  18. ) .[]