# HG changeset patch # User Paul Boddie # Date 1608940532 -3600 # Node ID 1c3dd797aed57270ef48419039f5be5b72d51b7e # Parent e18fcfeb86e95b17ddcf9ddc28d94951a8a776f4 Handle unrecognised package names. diff -r e18fcfeb86e9 -r 1c3dd797aed5 tools/show_updated.sh --- a/tools/show_updated.sh Sat Dec 26 00:55:15 2020 +0100 +++ b/tools/show_updated.sh Sat Dec 26 00:55:32 2020 +0100 @@ -5,6 +5,11 @@ PACKAGE=${1:-"pkg/landfall-examples"} BASEDIR=`realpath "$THISDIR/.."` +if [ ! -e "$PACKAGE" ] ; then + echo "Package not found: $PACKAGE" 1>&2 + exit 1 +fi + for FILENAME in `find "$PACKAGE" -newer "$BASEDIR/$PACKAGE" -type f` ; do if [ `basename "$FILENAME"` != `basename "$FILENAME" .orig` ] ; then continue