[build] Fail gracefully when no input files are given to genfsimg

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/224/head
Michael Brown 2021-01-22 18:29:01 +00:00
parent 05d7591a71
commit 34f51a0dca
1 changed files with 5 additions and 0 deletions

View File

@ -137,6 +137,11 @@ if [ -z "${OUTFILE}" ]; then
exit 1
fi
shift $(( OPTIND - 1 ))
if [ $# -eq 0 ] ; then
echo "${0}: no input files given" >&2
help
exit 1
fi
# Create temporary working directory
#