nixos-rebuild: Fix broken -I option

Commit 617a1a6e57 (#341402) broke this.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2024-10-15 13:57:25 -07:00
parent a3c0b3b215
commit 42a12a0551

View File

@ -102,11 +102,11 @@ while [ "$#" -gt 0 ]; do
--use-substitutes|--substitute-on-destination|-s)
copyFlags+=("-s")
;;
--builders)
-I|--builders)
j="$1"; shift 1
extraBuildFlags+=("$i" "$j")
;;
--I|--max-jobs|-j|--cores|--log-format)
--max-jobs|-j|--cores|--log-format)
j="$1"; shift 1
extraBuildFlags+=("$i" "$j")
copyFlags+=("$i" "$j")