From: Michael Brown Date: Fri, 22 Jan 2021 18:29:01 +0000 (+0000) Subject: [build] Fail gracefully when no input files are given to genfsimg X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34f51a0dcac5c444ed24c3b4ac73c1c6a2ddeb89;p=thirdparty%2Fipxe.git [build] Fail gracefully when no input files are given to genfsimg Signed-off-by: Michael Brown --- diff --git a/src/util/genfsimg b/src/util/genfsimg index 85fb006c4..b30ffe44f 100755 --- a/src/util/genfsimg +++ b/src/util/genfsimg @@ -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 #