aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-01-22 18:29:01 +0000
committerMichael Brown <mcb30@ipxe.org>2021-01-22 18:34:47 +0000
commit34f51a0dcac5c444ed24c3b4ac73c1c6a2ddeb89 (patch)
tree6f45e8307701d48b48df22deab1bc7bb90e70157
parent05d7591a71274349d17845a955f0d7d486a9634b (diff)
downloadipxe-34f51a0dcac5c444ed24c3b4ac73c1c6a2ddeb89.zip
ipxe-34f51a0dcac5c444ed24c3b4ac73c1c6a2ddeb89.tar.gz
ipxe-34f51a0dcac5c444ed24c3b4ac73c1c6a2ddeb89.tar.bz2
[build] Fail gracefully when no input files are given to genfsimg
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rwxr-xr-xsrc/util/genfsimg5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/genfsimg b/src/util/genfsimg
index 85fb006..b30ffe4 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
#