mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
enable --dry-run for darwin-rebuild
This commit is contained in:
parent
f317db6bf4
commit
303d5fa2c4
1 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,7 @@ while [ "$#" -gt 0 ]; do
|
|||
switch|build)
|
||||
action="$i"
|
||||
;;
|
||||
--show-trace|--no-build-hook|--keep-failed|-K|--verbose|-v|-vv|-vvv|-vvvv|-vvvvv|--fallback|-Q)
|
||||
--show-trace|--no-build-hook|--dry-run|--keep-failed|-K|--verbose|-v|-vv|-vvv|-vvvv|-vvvvv|--fallback|-Q)
|
||||
extraBuildFlags+=("$i")
|
||||
;;
|
||||
--max-jobs|-j|--cores|-I)
|
||||
|
@ -73,6 +73,8 @@ if [ "$action" = switch -o "$action" = build ]; then
|
|||
systemConfig="$(nix-build '<darwin>' ${extraBuildFlags[@]} --no-out-link -A system)"
|
||||
fi
|
||||
|
||||
if [ -z "$systemConfig" ]; then exit 0; fi
|
||||
|
||||
if [ "$action" = build ]; then
|
||||
echo $systemConfig
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue