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

Unified Diff: src/scripts/image_to_usb.sh

Issue 1709005: Only cache sudo if outside chroot (Closed)
Patch Set: Remove 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..2cba18aae4d7821c4ee8f2ff9252e495f1646072 100755
--- a/src/scripts/image_to_usb.sh
+++ b/src/scripts/image_to_usb.sh
@@ -51,6 +51,9 @@ then
SYSROOT="${FLAGS_build_root}/${FLAGS_board}"
else
SYSROOT="${DEFAULT_CHROOT_DIR}${FLAGS_build_root}/${FLAGS_board}"
+ echo "Caching sudo authentication"
+ sudo -v
+ echo "Done"
fi
AUTOTEST_SRC="${SYSROOT}/usr/local/autotest"
@@ -94,11 +97,6 @@ fi
FLAGS_from=`eval readlink -f ${FLAGS_from}`
FLAGS_to=`eval readlink -f ${FLAGS_to}`
-# Done evaluating arguments, lets go!
-echo "Caching sudo authentication"
-sudo -v
-echo "Done"
-
# Use this image as the source image to copy
SRC_IMAGE="${FLAGS_from}/chromiumos_image.bin"
« 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