mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
d97a107426
* nixos-version: fix syntax error * nixos-version: add -h parameter
15 lines
199 B
Bash
15 lines
199 B
Bash
#! @shell@
|
|
|
|
case "$1" in
|
|
-h|--help)
|
|
exec man nixos-version
|
|
exit 1
|
|
;;
|
|
--hash|--revision)
|
|
echo "@nixosRevision@"
|
|
;;
|
|
*)
|
|
echo "@nixosVersion@ (@nixosCodeName@)"
|
|
;;
|
|
esac
|