Make more build scripts barf when run as root.

Review URL: http://codereview.chromium.org/518004
This commit is contained in:
Daniel Erat 2009-12-23 12:15:23 -08:00
parent 24f6456a2c
commit 54fd4a350f
3 changed files with 5 additions and 2 deletions

View File

@ -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"

View File

@ -8,8 +8,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
# Flags
DEFINE_boolean stable $FLAGS_FALSE "Build with stable version of browser."

View File

@ -8,6 +8,9 @@
# The path to common.sh should be relative to your script's location.
. "$(dirname "$0")/common.sh"
assert_inside_chroot
assert_not_root_user
# Flags
# Parse command line