Reimplement new pipeline and allow limiting number of cores used fo build #3
| @@ -507,12 +507,6 @@ xtchain_build() | |||||||
| # Exit immediately on any failure | # Exit immediately on any failure | ||||||
| set -e | 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 | # Check number of CPU cores available | ||||||
| : ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)} | : ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)} | ||||||
| : ${CORES:=$(nproc 2>/dev/null)} | : ${CORES:=$(nproc 2>/dev/null)} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user