Skip to content

Commit d20058a

Browse files
committed
bootable: add required argument handling
Signed-off-by: Ricardo Pardini <[email protected]>
1 parent 066bf1b commit d20058a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bash/bootable-media.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
function build_bootable_media() {
2-
log info "would build build_bootable_media: '${*}'"
2+
log debug "would build build_bootable_media: '${*}'"
33

44
declare -r -g bootable_id="${1}" # read-only variable from here
55

6+
# Check if the bootable_id is set, otherwise bomb
7+
if [[ -z "${bootable_id}" ]]; then
8+
log error "No bootable_id specified; please specify one of: ${bootable_inventory_ids[*]}"
9+
exit 1
10+
fi
11+
612
declare -g -A bootable_info=()
713
get_bootable_info_dict "${bootable_id}"
814

0 commit comments

Comments
 (0)