2020-05-10 01:25:52 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#!nix-shell -p bash -i 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"
|