86cd055477
Example use case: git checkout `nixos-version --hash`
10 lines
141 B
Bash
10 lines
141 B
Bash
#! @shell@
|
|
|
|
case "$1" in
|
|
--hash|--revision)
|
|
echo "@nixosRevision@"
|
|
;;
|
|
*)
|
|
echo "@nixosVersion@ (@nixosCodeName@)"
|
|
;;
|
|
esac
|