=================================================================== RCS file: /cvs/openbsd/fw_update/fw_install.sh,v retrieving revision 1.119 retrieving revision 1.120 diff -u -r1.119 -r1.120 --- openbsd/fw_update/fw_install.sh 2021/12/24 01:20:52 1.119 +++ openbsd/fw_update/fw_install.sh 2021/12/24 01:41:54 1.120 @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: fw_install.sh,v 1.119 2021/12/24 01:20:52 afresh1 Exp $ +# $OpenBSD: fw_install.sh,v 1.120 2021/12/24 01:41:54 afresh1 Exp $ # # Copyright (c) 2021 Andrew Hewus Fresh # @@ -341,6 +341,10 @@ set -o noclobber ! signify -qVep "$FWPUB_KEY" -x "$CFILE" -m "$CFILE" && echo "Signature check of SHA256.sig failed" >&2 && exit 1 +elif [ ! -e "$CFILE" ]; then + # TODO: We shouldn't need a CFILE if all arguments are files. + echo "${0##*/}: $CFILE: No such file or directory" >&2 + exit 2 fi added=''