This commit is contained in:
parent
7967da22b9
commit
4013b25462
@ -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)}
|
||||
|
Loading…
Reference in New Issue
Block a user