mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
nixos-version: fix syntax error and add -h (#16906)
* nixos-version: fix syntax error * nixos-version: add -h parameter
This commit is contained in:
parent
60e5b599d5
commit
d97a107426
@ -1,9 +1,10 @@
|
||||
#! @shell@
|
||||
|
||||
case "$1" in
|
||||
--help)
|
||||
-h|--help)
|
||||
exec man nixos-version
|
||||
exit 1
|
||||
;;
|
||||
--hash|--revision)
|
||||
echo "@nixosRevision@"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user