From f5cb46e316cb2bfddd3bdd6d44536830286c9858 Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Mon, 24 Apr 2023 20:24:22 +0200 Subject: Toolchain: Exit Build*.sh scripts if executed as root --- Toolchain/BuildCMake.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Toolchain/BuildCMake.sh') 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" -- cgit v1.2.3