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

* nixos-version: fix syntax error

* nixos-version: add -h parameter

authored by

davidak and committed by
Domen Kožar
d97a1074 60e5b599

+2 -1
+2 -1
nixos/modules/installer/tools/nixos-version.sh
··· 1 #! @shell@ 2 3 case "$1" in 4 - --help) 5 exec man nixos-version 6 exit 1 7 --hash|--revision) 8 echo "@nixosRevision@" 9 ;;
··· 1 #! @shell@ 2 3 case "$1" in 4 + -h|--help) 5 exec man nixos-version 6 exit 1 7 + ;; 8 --hash|--revision) 9 echo "@nixosRevision@" 10 ;;