From 2c1d1fb13467184256e352b00ed2d89046c16cd6 Mon Sep 17 00:00:00 2001 From: Ellis Gibbons Date: Fri, 12 Apr 2024 17:50:07 -0400 Subject: [PATCH] fix: allow for newlines in keys --- pkgs/agenix.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/agenix.sh b/pkgs/agenix.sh index b78b441..3d0415e 100644 --- a/pkgs/agenix.sh +++ b/pkgs/agenix.sh @@ -171,7 +171,9 @@ function edit { ENCRYPT=() while IFS= read -r key do - ENCRYPT+=(--recipient "$key") + if [ -n "$key" ]; then + ENCRYPT+=(--recipient "$key") + fi done <<< "$KEYS" REENCRYPTED_DIR=$(@mktempBin@ -d)