From d2d4c6c8a2f7ec8aa026bba6a9476d66ed746f1d Mon Sep 17 00:00:00 2001 From: Theo Chatzimichos Date: Oct 31 2017 15:02:21 +0000 Subject: bin/encrypt_pillar.sh: better matching for the lines that have key IDs --- diff --git a/bin/encrypt_pillar.sh b/bin/encrypt_pillar.sh index aeed3cf..e002613 100755 --- a/bin/encrypt_pillar.sh +++ b/bin/encrypt_pillar.sh @@ -21,5 +21,5 @@ done [[ -z $STRING ]] && help && exit 1 -RECIPIENTS=$(egrep -v '^(#|$)' encrypted_pillar_recipients | while read i; do echo "-r $i"; done | xargs) +RECIPIENTS=$(egrep '^\s*0x' encrypted_pillar_recipients | while read i; do echo "-r $i"; done | xargs) echo -n "${STRING}" | gpg --armor --batch --trust-model always --encrypt ${RECIPIENTS}