From 3adf8b905109fb9df17cfebb505edc1c2fff394d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 13 Jan 2020 09:18:40 +0100 Subject: update-keys: style --- update-keys | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'update-keys') diff --git a/update-keys b/update-keys index 5c7592a..6dc3601 100755 --- a/update-keys +++ b/update-keys @@ -32,8 +32,10 @@ while read -ra data; do keyid="${data[0]}" username="${data[@]:1}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg ${GPG_OPTIONS} -a --export ${keyid} /dev/null - ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" /dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} /dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" /dev/null printf 'minimize\nquit\ny\n' | \ ${GPG} --command-fd 0 --edit-key ${keyid} ${GPG} --yes --lsign-key ${keyid} &>/dev/null @@ -45,8 +47,10 @@ ${GPG} --import-ownertrust < archlinux32-trusted 2>/dev/null while read -ra data; do keyid="${data[0]}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg ${GPG_OPTIONS} -a --export ${keyid} | ${GPG} --import &>/dev/null - ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | ${GPG} --import &>/dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} | \ + ${GPG} --import &>/dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | \ + ${GPG} --import &>/dev/null done < packager-keyids while read -ra data; do keyid="${data[0]}" @@ -66,8 +70,10 @@ while read -ra data; do keyid="${data[0]}" username="${data[2]}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg ${GPG_OPTIONS} -a --export ${keyid} | ${GPG} --import &>/dev/null - ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | ${GPG} --import &>/dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} | \ + ${GPG} --import &>/dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | \ + ${GPG} --import &>/dev/null printf 'clean\nquit\ny\n' | \ ${GPG} --command-fd 0 --edit-key ${keyid} if ! ${GPG} --list-keys --with-colons ${keyid} 2>/dev/null | grep -q '^pub:f:'; then @@ -82,8 +88,10 @@ while read -ra data; do keyid="${data[0]}" username="${data[2]}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg ${GPG_OPTIONS} -a --export ${keyid} | ${GPG} --import &>/dev/null - ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | ${GPG} --import &>/dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} | \ + ${GPG} --import &>/dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | \ + ${GPG} --import &>/dev/null printf 'clean\nquit\ny\n' | \ ${GPG} --command-fd 0 --edit-key ${keyid} if ! ${GPG} --list-keys --with-colons ${keyid} 2>/dev/null | grep -q '^pub:f:'; then -- cgit v1.2.3-70-g09d2