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

Unified Diff: src/scripts/start_devserver

Issue 1736025: Added restart_in_chroot_if_needed to common.sh. (Closed) Base URL: http://src.chromium.org/git/chromiumos.git
Patch Set: Reverted mod_image_for_test.sh and removed line from common.sh. 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 | « src/scripts/set_shared_user_password.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/start_devserver
diff --git a/src/scripts/start_devserver b/src/scripts/start_devserver
index e79b6f8e23b92d2250151e80e955698b0017a2d4..f56f4c61200e112bf3c344d19db5b6bdbefcf416 100755
--- a/src/scripts/start_devserver
+++ b/src/scripts/start_devserver
@@ -10,6 +10,9 @@ COMMON_SH="$(dirname "$0")/common.sh"
. "$COMMON_SH"
# Script must be run inside the chroot if not in 'always serve' mode.
-[[ $1 != "-a" && assert_inside_chroot ]]
+if [[ "$1" != "-a" ]]
+then
+ restart_in_chroot_if_needed $*
+fi
cd ${GCLIENT_ROOT}/src/platform/dev && python devserver.py $*
« no previous file with comments | « src/scripts/set_shared_user_password.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698