mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
This both fixes an incorrect behavior where --to_product would unsafely lead to using a target device not intended to by the user; and reuses the existing logic for device autodetection to work with provided product strings. As a result, it is easier to find devices, and the script's behavior is more consistent as far as device detection and selection. This preserves the pattern matching on product string (now properly highlighted in usage text and inline comments). BUG=None TEST=Ran script with various flag combinations (--to, --to_product), product strings, and devices connected. Change-Id: I80bfca086029555853a680e7c97251b11adc912e Reviewed-on: https://gerrit.chromium.org/gerrit/15757 Reviewed-by: Richard Barnette <jrbarnette@chromium.org> Commit-Ready: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org>
Description
Languages
Shell
93.1%
Python
6.9%