Merge pull request #256 from spectre256/main

fix: allow for newlines in keys
This commit is contained in:
Ryan Mulligan 2024-04-26 05:59:12 -07:00 committed by GitHub
commit 24a7ea3905
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,7 +171,9 @@ function edit {
ENCRYPT=() ENCRYPT=()
while IFS= read -r key while IFS= read -r key
do do
ENCRYPT+=(--recipient "$key") if [ -n "$key" ]; then
ENCRYPT+=(--recipient "$key")
fi
done <<< "$KEYS" done <<< "$KEYS"
REENCRYPTED_DIR=$(@mktempBin@ -d) REENCRYPTED_DIR=$(@mktempBin@ -d)