mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-14 00:22:44 +03:00
Merge pull request #176456 from klemensn/nixos-rebuild-synopsis
nixos-rebuild: Accept only one argument
This commit is contained in:
commit
7f06c138bf
@ -49,6 +49,8 @@ while [ "$#" -gt 0 ]; do
|
||||
;;
|
||||
switch|boot|test|build|edit|dry-build|dry-run|dry-activate|build-vm|build-vm-with-bootloader)
|
||||
if [ "$i" = dry-run ]; then i=dry-build; fi
|
||||
# exactly one action mandatory, bail out if multiple are given
|
||||
if [ -n "$action" ]; then showSyntax; fi
|
||||
action="$i"
|
||||
;;
|
||||
--install-grub)
|
||||
|
Loading…
Reference in New Issue
Block a user