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 1 #! @shell@ 2 2 3 3 case "$1" in 4 - --help) 4 + -h|--help) 5 5 exec man nixos-version 6 6 exit 1 7 + ;; 7 8 --hash|--revision) 8 9 echo "@nixosRevision@" 9 10 ;;