fixes: fulls-peed parameter detection
Some checks failed
Nix Format Check / check-format (push) Failing after 36s
Some checks failed
Nix Format Check / check-format (push) Failing after 36s
This commit is contained in:
@ -5,6 +5,7 @@ while [[ "$#" -gt 0 ]]; do
|
|||||||
case $1 in
|
case $1 in
|
||||||
--ha) RUN_HA=true ;;
|
--ha) RUN_HA=true ;;
|
||||||
--nix) RUN_NIX=true ;;
|
--nix) RUN_NIX=true ;;
|
||||||
|
--full-speed) FULL_SPEED=true ;;
|
||||||
*) echo "Unknown parameter passed: $1"; exit 1 ;;
|
*) echo "Unknown parameter passed: $1"; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
@ -16,7 +17,7 @@ if [[ -z "$RUN_HA" && -z "$RUN_NIX" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if --full-speed flag is passed, otherwise use --cores 8 -j 1
|
# 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)
|
CORES=$(nproc)
|
||||||
JOBS=$(nproc)
|
JOBS=$(nproc)
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user