diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-11-14 09:54:10 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-11-14 09:54:10 +0100 |
commit | 69932c7c15a2a4ddea4ebe579b880499ec3fef3f (patch) | |
tree | 78fda143e056f1f77b11cf3b278f03ae38908d22 | |
parent | 925ce902c652fb65425306613364521b63dbcaf7 (diff) | |
download | ptxdist-69932c7c15a2a4ddea4ebe579b880499ec3fef3f.tar.gz ptxdist-69932c7c15a2a4ddea4ebe579b880499ec3fef3f.tar.xz |
ptxdist: print error when calling 'image' without argument
-rwxr-xr-x | bin/ptxdist | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index 555d801ae..854648ae2 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1905,6 +1905,10 @@ EOF exit ;; image) + if [ ${#} -eq 0 ]; then + echo "No image given." + exit 1 + fi check_premake_compiler && images=( "${@/#/${IMAGEDIR}/}" ) && ptxd_make_log "${images[@]}" |