12 lines
353 B
Bash
12 lines
353 B
Bash
|
#!/usr/bin/env 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"
|