simplify age-import function

This commit is contained in:
Philip Henning 2023-10-15 13:21:38 +02:00
parent d4bde11d13
commit aec7ca3729

View file

@ -61,7 +61,7 @@ if [[ $(command -v age) ]]; then
mkdir -p "${dirname}" mkdir -p "${dirname}"
echo -n ${data} | age $(echo -n "${recipients_list[@]}" | sed -e "s/^\'//" -e "s/\'$//") --encrypt --armor --output "${secret_path}" echo -n ${data} | age $(sed -e "s/^\'//" -e "s/\'$//" <<<"${recipients_list[@]}") --encrypt --armor --output "${secret_path}"
set +efu +o pipefail set +efu +o pipefail
} }