diff --git a/bin/actions/upgrade.sh b/bin/actions/upgrade.sh index d7d52b5..a4d9ac1 100755 --- a/bin/actions/upgrade.sh +++ b/bin/actions/upgrade.sh @@ -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