2020-05-10 01:32:05 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-05-09 23:20:10 +00:00
|
|
|
|
2020-05-09 23:28:25 +00:00
|
|
|
set -eu
|
2020-05-09 23:20:10 +00:00
|
|
|
|
|
|
|
echo Dropping files into place as defined by manifest...
|
|
|
|
while read -r manifest_line; do
|
2020-05-09 23:29:54 +00:00
|
|
|
manifest_key="$(echo "$manifest_line" | cut -d'=' -f1)"
|
|
|
|
manifest_value="$(echo "$manifest_line" | cut -d'=' -f2)"
|
2020-05-09 23:28:25 +00:00
|
|
|
printf "\t%s\n" "${manifest_key}"
|
2020-05-10 01:24:03 +00:00
|
|
|
manifest_key_val="${!manifest_key}"
|
2020-05-09 23:28:25 +00:00
|
|
|
cp "${manifest_key_val}" "${manifest_value}"
|
2020-05-09 23:20:10 +00:00
|
|
|
done < "$SECRETS_MANIFEST"
|