1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

Toolchain: Exit Build*.sh scripts if executed as root

This commit is contained in:
Kenneth Myhra 2023-04-24 20:24:22 +02:00 committed by Andrew Kaster
parent 9ef3704ce8
commit f5cb46e316
9 changed files with 48 additions and 3 deletions

View file

@ -5,6 +5,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 BuildPython.sh as root, parts of your Toolchain directory will become root-owned"
PREFIX_DIR="$DIR/Local/python"
BUILD_DIR="$DIR/Build/python"
TARBALLS_DIR="$DIR/Tarballs"