Merge "Fail helpfully if no elements are specified"
This commit is contained in:
commit
9fae41c898
1 changed files with 5 additions and 0 deletions
|
@ -142,6 +142,11 @@ if [ "$IS_RAMDISK" == "1" ]; then
|
|||
source $_LIB/ramdisk-functions
|
||||
fi
|
||||
|
||||
# If no elements are specified theres no way we can succeed
|
||||
if [ -z "$@" ]; then
|
||||
echo "ERROR: At least one distribution root element must be specified"
|
||||
exit 1
|
||||
fi
|
||||
arg_to_elements "$@"
|
||||
|
||||
if [ "${#IMAGE_TYPES[@]}" = "1" ]; then
|
||||
|
|
Loading…
Reference in a new issue