# HG changeset patch # User Paul Boddie # Date 1673800620 -3600 # Node ID 560f520d8446f6ea4df20a4d1e314342d4d04830 # Parent 7003a50615900e0bb62504466d3d367da1aa5d94 Handle an absence of release archives properly. diff -r 7003a5061590 -r 560f520d8446 docs/tools/sign_releases.sh --- a/docs/tools/sign_releases.sh Sun Jan 15 17:17:48 2023 +0100 +++ b/docs/tools/sign_releases.sh Sun Jan 15 17:37:00 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