diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2023-04-24 20:24:22 +0200 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-04-25 01:53:42 -0600 |
commit | f5cb46e316cb2bfddd3bdd6d44536830286c9858 (patch) | |
tree | 74168d17fefd856ac042882337791386885b8814 /Toolchain/BuildCMake.sh | |
parent | 9ef3704ce8a8523c18c0e8366c1c144fefb6073b (diff) | |
download | serenity-f5cb46e316cb2bfddd3bdd6d44536830286c9858.zip |
Toolchain: Exit Build*.sh scripts if executed as root
Diffstat (limited to 'Toolchain/BuildCMake.sh')
-rwxr-xr-x | Toolchain/BuildCMake.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Toolchain/BuildCMake.sh b/Toolchain/BuildCMake.sh index 2242d3a738..ba832b05a2 100755 --- a/Toolchain/BuildCMake.sh +++ b/Toolchain/BuildCMake.sh @@ -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 BuildCMake.sh as root, parts of your Toolchain directory will become root-owned" + PREFIX_DIR="$DIR/Local/cmake" BUILD_DIR="$DIR/Build/cmake" TARBALLS_DIR="$DIR/Tarballs" |