mirror of
https://github.com/shokinn/.files.git
synced 2025-01-18 13:22:25 +00:00
simplify age-import function
This commit is contained in:
parent
d4bde11d13
commit
aec7ca3729
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue