fixes: fulls-peed parameter detection
Some checks failed
Nix Format Check / check-format (push) Failing after 36s

This commit is contained in:
2024-12-11 14:55:49 +01:00
parent 76e9cb0371
commit 20a4b6b529

View File

@ -5,6 +5,7 @@ while [[ "$#" -gt 0 ]]; do
case $1 in
--ha) RUN_HA=true ;;
--nix) RUN_NIX=true ;;
--full-speed) FULL_SPEED=true ;;
*) echo "Unknown parameter passed: $1"; exit 1 ;;
esac
shift
@ -16,7 +17,7 @@ if [[ -z "$RUN_HA" && -z "$RUN_NIX" ]]; then
fi
# Check if --full-speed flag is passed, otherwise use --cores 8 -j 1
if [[ "$1" == "--full-speed" ]]; then
if [[ "$FULL_SPEED" == true ]]; then
CORES=$(nproc)
JOBS=$(nproc)
else