Merge pull request #176456 from klemensn/nixos-rebuild-synopsis

nixos-rebuild: Accept only one argument
This commit is contained in:
Will Fancher 2022-06-23 14:22:04 -04:00 committed by GitHub
commit 7f06c138bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)