depot/hack/populate_secrets.sh

12 lines
378 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash
set -euo pipefail
echo Dropping files into place as defined by manifest...
while read -r manifest_line; do
IFS='=' read -ra manifest_bits <<< "$manifest_line"
if [[ "${#manifest_bits[@]}" -ne 2 ]]; then continue; fi
echo -e "\t${manifest_bits[1]}"
cp "${!manifest_bits[0]}" "${manifest_bits[1]}"
done < "$SECRETS_MANIFEST"