forked from pool/flux2-cli
new package flux2-cli: CLI for the FluxCD continuous delivery solution for Kubernetes OBS-URL: https://build.opensuse.org/request/show/1071022 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/flux2-cli?expand=0&rev=1
18 lines
440 B
Bash
18 lines
440 B
Bash
#!/bin/bash
|
|
|
|
for kustomization_file in flux2/manifests/bases/*/kustomization.yaml
|
|
do
|
|
echo "$kustomization_file"
|
|
target_dir="$(dirname "$kustomization_file")/"
|
|
echo "target_dir is ${target_dir}"
|
|
while read -r resource
|
|
do
|
|
echo "${resource}"
|
|
rm -f "$(basename "${resource}")"
|
|
wget "${resource}" -O "$(basename "${resource}")"
|
|
done < <(awk '/^- https:\/\/github/ {print $2}' "${kustomization_file}")
|
|
|
|
echo "++++++++++++++++"
|
|
|
|
done
|