2020-05-09 23:28:25 +00:00
|
|
|
#!/bin/sh
|
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:28:25 +00:00
|
|
|
manifest_key="$(echo "$manifest_line" | cut -f'=' -f1)"
|
|
|
|
manifest_value="$(echo "$manifest_line" | cut -f'=' -f2)"
|
|
|
|
printf "\t%s\n" "${manifest_key}"
|
|
|
|
eval manifest_key_val=\"\$$manifest_key\"
|
|
|
|
cp "${manifest_key_val}" "${manifest_value}"
|
2020-05-09 23:20:10 +00:00
|
|
|
done < "$SECRETS_MANIFEST"
|