SHA256
1
0
forked from pool/flux2-cli
Files
flux2-cli/download_yaml.sh

18 lines
440 B
Bash
Raw Permalink Normal View History

#!/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