# HG changeset patch # User Paul Boddie # Date 1673800630 -3600 # Node ID 3dcd2eb09b83859a848cf3836eb4aaa21f713a0b # Parent 3bf1828501cce0c4f8f047d9a4490f7375cc62c7 Handle an absence of release archives properly. diff -r 3bf1828501cc -r 3dcd2eb09b83 docs/tools/sign_releases.sh --- a/docs/tools/sign_releases.sh Sun Jan 15 17:16:42 2023 +0100 +++ b/docs/tools/sign_releases.sh Sun Jan 15 17:37:10 2023 +0100 @@ -31,9 +31,18 @@ fi for FILENAME in "$OUTDIR/"*".tar.bz2" ; do + + # Handle an absence of archives. + + if [ ! -e "$FILENAME" ] ; then + break + fi + OUTFILE="$FILENAME.asc" if [ ! -e "$OUTFILE" ] || [ "$FORCE" ]; then gpg --sign -a -b "$FILENAME" echo "$OUTFILE" fi done + +# vim: tabstop=4 expandtab shiftwidth=4