commit:     2dd10b7dea813f333ec4d94c2589303395c2ab5e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 27 00:25:17 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 27 00:25:17 2026 +0000
URL:        
https://gitweb.gentoo.org/proj/gentoo-authority-key.git/commit/?id=2dd10b7d

autosign.bash: use pipestatus more with pipelines

Signed-off-by: Sam James <sam <AT> gentoo.org>

 autosign.bash | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/autosign.bash b/autosign.bash
index f829393..f77289b 100755
--- a/autosign.bash
+++ b/autosign.bash
@@ -206,8 +206,10 @@ main() {
        gpgconf --kill all
 
        refresh_keys
-       get_ldap | sort -u > ldap.txt || die 'failure writing ldap.txt'
-       get_signed_keys | sort -u > signed.txt || die 'failure writing 
signed.txt'
+       get_ldap | sort -u > ldap.txt
+       pipestatus || die 'failure writing ldap.txt: $?'
+       get_signed_keys | sort -u > signed.txt
+       pipestatus || die 'failure writing signed.txt: $?'
 
        if ! [[ -s ldap.txt ]] ; then
                # Avoid revoking every key we trust if our LDAP query fails

Reply via email to