]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Fail gracefully when no input files are given to genfsimg
authorMichael Brown <mcb30@ipxe.org>
Fri, 22 Jan 2021 18:29:01 +0000 (18:29 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 22 Jan 2021 18:34:47 +0000 (18:34 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/genfsimg

index 85fb006c49696f2eed90051703fc83621559ac9e..b30ffe44f36aa851cbc466cb1c0054093d4ebe53 100755 (executable)
@@ -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
 #