nixos-version: fix syntax error and add -h (#16906)

* nixos-version: fix syntax error

* nixos-version: add -h parameter
This commit is contained in:
davidak 2016-07-13 09:11:32 +02:00 committed by Domen Kožar
parent 60e5b599d5
commit d97a107426

View file

@ -1,9 +1,10 @@
#! @shell@
case "$1" in
--help)
-h|--help)
exec man nixos-version
exit 1
;;
--hash|--revision)
echo "@nixosRevision@"
;;