hack/populate_secret: oops, did it wrong

This commit is contained in:
Luke Granger-Brown 2020-05-10 00:29:54 +01:00
parent 5f1f8bd386
commit 44018a1a07

View file

@ -4,8 +4,8 @@ set -eu
echo Dropping files into place as defined by manifest... echo Dropping files into place as defined by manifest...
while read -r manifest_line; do while read -r manifest_line; do
manifest_key="$(echo "$manifest_line" | cut -f'=' -f1)" manifest_key="$(echo "$manifest_line" | cut -d'=' -f1)"
manifest_value="$(echo "$manifest_line" | cut -f'=' -f2)" manifest_value="$(echo "$manifest_line" | cut -d'=' -f2)"
printf "\t%s\n" "${manifest_key}" printf "\t%s\n" "${manifest_key}"
eval manifest_key_val=\"\$$manifest_key\" eval manifest_key_val=\"\$$manifest_key\"
cp "${manifest_key_val}" "${manifest_value}" cp "${manifest_key_val}" "${manifest_value}"