From aec7ca3729c6a54ecbd3107c39891ca915a65104 Mon Sep 17 00:00:00 2001 From: shokinn Date: Sun, 15 Oct 2023 13:21:38 +0200 Subject: [PATCH] simplify age-import function --- dotfiles/commonfunc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/commonfunc b/dotfiles/commonfunc index 125dd82..5297d64 100644 --- a/dotfiles/commonfunc +++ b/dotfiles/commonfunc @@ -61,7 +61,7 @@ if [[ $(command -v age) ]]; then 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 }