mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:47:45 +00:00
Toolchain: Exit Build*.sh scripts if executed as root
This commit is contained in:
parent
9ef3704ce8
commit
f5cb46e316
9 changed files with 48 additions and 3 deletions
|
@ -6,6 +6,11 @@ set -e
|
|||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
. "${DIR}/../Meta/shell_include.sh"
|
||||
|
||||
exit_if_running_as_root "Do not run BuildMold.sh as root, parts of your Toolchain directory will become root-owned"
|
||||
|
||||
NPROC="nproc"
|
||||
SYSTEM_NAME="$(uname -s)"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue