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

Unified Diff: src/scripts/image_to_usb.sh

Issue 1736005: build: Re-hide pointless question in image_to_usb.sh --test_image. (Closed)
Patch Set: add comment Created 10 years, 8 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: src/scripts/image_to_usb.sh
diff --git a/src/scripts/image_to_usb.sh b/src/scripts/image_to_usb.sh
index 3744ac08260510bfe5249079c8b73c36f17c7649..6b92a5ba2b19552c9b4e5be6117840db1b64ffca 100755
--- a/src/scripts/image_to_usb.sh
+++ b/src/scripts/image_to_usb.sh
@@ -115,15 +115,12 @@ if [ ${FLAGS_test_image} -eq ${FLAGS_TRUE} ] ; then
if [ ${FLAGS_factory} -eq ${FLAGS_TRUE} ] ; then
FACTORY_ARGS="--factory"
fi
- # Check for yes
- if [ ${FLAGS_yes} -eq ${FLAGS_TRUE} ] ; then
- YES="--yes"
- fi
-
- # Modify it.
+ # Modify it. Pass --yes so that mod_image_for_test.sh won't ask us if we
+ # really want to modify the image; the user gave their assent already with
+ # --test-image and the original image is going to be preserved.
"${SCRIPTS_DIR}/mod_image_for_test.sh" --image \
- "${FLAGS_from}/chromiumos_test_image.bin" ${FACTORY_ARGS} ${YES}
+ "${FLAGS_from}/chromiumos_test_image.bin" ${FACTORY_ARGS} --yes
echo "Done with mod_image_for_test."
else
echo "Using cached test image."
« 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