summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMichael Brown2021-01-22 19:29:01 +0100
committerMichael Brown2021-01-22 19:34:47 +0100
commit34f51a0dcac5c444ed24c3b4ac73c1c6a2ddeb89 (patch)
tree6f45e8307701d48b48df22deab1bc7bb90e70157 /src/util
parent[build] Use explicit disk geometry for generated FAT filesystem images (diff)
downloadipxe-34f51a0dcac5c444ed24c3b4ac73c1c6a2ddeb89.tar.gz
ipxe-34f51a0dcac5c444ed24c3b4ac73c1c6a2ddeb89.tar.xz
ipxe-34f51a0dcac5c444ed24c3b4ac73c1c6a2ddeb89.zip
[build] Fail gracefully when no input files are given to genfsimg
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/genfsimg5
1 files changed, 5 insertions, 0 deletions
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
#