13 lines
418 B
Bash
Executable file
13 lines
418 B
Bash
Executable file
#!/usr/bin/env nix-shell
|
|
#!nix-shell -p bash -i bash
|
|
|
|
set -eu
|
|
|
|
echo Dropping files into place as defined by manifest...
|
|
while read -r manifest_line; do
|
|
manifest_key="$(echo "$manifest_line" | cut -d'=' -f1)"
|
|
manifest_value="$(echo "$manifest_line" | cut -d'=' -f2)"
|
|
printf "\t%s\n" "${manifest_key}"
|
|
manifest_key_val="${!manifest_key}"
|
|
cp "${manifest_key_val}" "${manifest_value}"
|
|
done < "$SECRETS_MANIFEST"
|