mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +00:00
nixos-rebuild: avoid rebuilding nix / reexecuting nixos-rebuild for list-generations
This commit is contained in:
parent
71b4a60386
commit
2680b60c30
@ -50,6 +50,10 @@ while [ "$#" -gt 0 ]; do
|
|||||||
;;
|
;;
|
||||||
switch|boot|test|build|edit|repl|dry-build|dry-run|dry-activate|build-vm|build-vm-with-bootloader|list-generations)
|
switch|boot|test|build|edit|repl|dry-build|dry-run|dry-activate|build-vm|build-vm-with-bootloader|list-generations)
|
||||||
if [ "$i" = dry-run ]; then i=dry-build; fi
|
if [ "$i" = dry-run ]; then i=dry-build; fi
|
||||||
|
if [ "$i" = list-generations ]; then
|
||||||
|
buildNix=
|
||||||
|
fast=1
|
||||||
|
fi
|
||||||
# exactly one action mandatory, bail out if multiple are given
|
# exactly one action mandatory, bail out if multiple are given
|
||||||
if [ -n "$action" ]; then showSyntax; fi
|
if [ -n "$action" ]; then showSyntax; fi
|
||||||
action="$i"
|
action="$i"
|
||||||
|
Loading…
Reference in New Issue
Block a user