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@ #! @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@"
;; ;;