mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
Detect if args were passed to image_to_usb, die if they are.
build_image interface now only support arg arguments rather than flags. This might be confusing for users who might expect something to happen when they run image_to_usb dev. BUG=chromium-os:27362 TEST=Tested with/without args. Change-Id: If521cb612fa1fa5716fc1557038780a5366e8bab Reviewed-on: https://gerrit.chromium.org/gerrit/17625 Commit-Ready: Chris Sosa <sosa@chromium.org> Reviewed-by: Chris Sosa <sosa@chromium.org> Tested-by: Chris Sosa <sosa@chromium.org>
This commit is contained in:
parent
17c622a380
commit
c596581be1
@ -78,6 +78,10 @@ DEFINE_string arch "" \
|
||||
FLAGS "$@" || exit 1
|
||||
eval set -- "${FLAGS_ARGV}"
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
die "Arguments aren't currently supported in image_to_usb."
|
||||
fi
|
||||
|
||||
# Generates a descriptive string of a removable device. Includes the
|
||||
# manufacturer (if non-empty), product and a human-readable size.
|
||||
function get_disk_string() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user