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 a new issue