# HG changeset patch # User Paul Boddie # Date 1673800579 -3600 # Node ID 590a9d7e25095d9427229712428531698a158484 # Parent 48e832898a02ecc5ec51b287d50c972acf43d346 Handle an absence of release archives properly. diff -r 48e832898a02 -r 590a9d7e2509 docs/tools/sign_releases.sh --- a/docs/tools/sign_releases.sh Tue Dec 13 17:05:11 2022 +0100 +++ b/docs/tools/sign_releases.sh Sun Jan 15 17:36:19 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