Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: image_to_usb.sh

Issue 3212012: image_to_usb: List available disks when /dev/sdX is specified (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: Just change the default Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: image_to_usb.sh
diff --git a/image_to_usb.sh b/image_to_usb.sh
index f41ff387190f523c34551797c1584a171ed38a0d..b83708d447de16557fb7e7048d1c365f527528cd 100755
--- a/image_to_usb.sh
+++ b/image_to_usb.sh
@@ -19,7 +19,7 @@ get_default_board
DEFINE_string board "${DEFAULT_BOARD}" "Board for which the image was built"
DEFINE_string from "" \
"Directory containing chromiumos_image.bin"
-DEFINE_string to "" "${DEFAULT_TO_HELP}"
+DEFINE_string to "/dev/sdX" "${DEFAULT_TO_HELP}"
DEFINE_boolean yes ${FLAGS_FALSE} "Answer yes to all prompts" "y"
DEFINE_boolean force_copy ${FLAGS_FALSE} "Always rebuild test image"
DEFINE_boolean force_non_usb ${FLAGS_FALSE} \
@@ -81,7 +81,7 @@ if [ ! -d "${FLAGS_from}" ] ; then
exit 1
fi
-if [ -z "${FLAGS_to}" ]; then
+if [ "${FLAGS_to}" == "/dev/sdX" ]; then
echo "You must specify a file or device to write to using --to."
disks=$(list_usb_disks)
if [ -n "$disks" ]; then
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698