mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 04:06:33 +02:00
Make more build scripts barf when run as root.
Review URL: http://codereview.chromium.org/518004
This commit is contained in:
parent
24f6456a2c
commit
54fd4a350f
@ -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"
|
||||
|
||||
|
||||
@ -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."
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user