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

Unified Diff: src/scripts/build_image.sh

Issue 518004: Make more build scripts barf when run as root. (Closed)
Patch Set: Created 11 years 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 | src/scripts/build_platform_packages.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/build_image.sh
diff --git a/src/scripts/build_image.sh b/src/scripts/build_image.sh
index 0e4ada5cdd330b776f0bd8eaabb11cf867df5add..005950a466b0c6daecfe87bfc59a16a3939c8448 100755
--- a/src/scripts/build_image.sh
+++ b/src/scripts/build_image.sh
@@ -17,8 +17,8 @@
# The path to common.sh should be relative to your script's location.
. "$(dirname "$0")/common.sh"
-# Script must be run inside the chroot
assert_inside_chroot
+assert_not_root_user
DEFAULT_PKGLIST="${SRC_ROOT}/package_repo/package-list-prod.txt"
« no previous file with comments | « no previous file | src/scripts/build_platform_packages.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698