fetch.jq (408B)
- # Copyright © 2024 Haelwenn (lanodan) Monnier <contact+ca-certificates@hacktivis.me>
- # SPDX-License-Identifier: 0BSD
- with_entries(
- .value =
- ("certs/" + .key + "/") as $dir
- | .value.roots
- | (
- map(
- {
- url: .,
- filename: ($dir + split("/")[-1])
- }
- | "wget -c -O " + (.filename | @sh) + " " + (.url | @sh)
- )
- | join("\n")
- )
- | "mkdir -p " + ($dir | @sh) + "\n" + .
- ) .[]