Allow xtchain to be built by root
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Rafal Kupiec 2022-07-22 22:52:45 +02:00
parent 7967da22b9
commit 4013b25462
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -507,12 +507,6 @@ xtchain_build()
# Exit immediately on any failure
set -e
# Check if script launched as root
if [ "$(whoami)" = "root" ]; then
echo "This script cannot be run as root!"
exit 1
fi
# Check number of CPU cores available
: ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)}
: ${CORES:=$(nproc 2>/dev/null)}