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@
|
#! @shell@
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--help)
|
-h|--help)
|
||||||
exec man nixos-version
|
exec man nixos-version
|
||||||
exit 1
|
exit 1
|
||||||
|
;;
|
||||||
--hash|--revision)
|
--hash|--revision)
|
||||||
echo "@nixosRevision@"
|
echo "@nixosRevision@"
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user