Logo
Explore Help
Sign In
public/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Packages Projects Releases Wiki Activity
nixpkgs/nixos/modules/installer/tools/nixos-version.sh

15 lines
199 B
Bash
Raw Normal View History

* Add missing file. svn path=/nixos/trunk/; revision=33733
2012-04-10 21:17:43 +00:00
#! @shell@
Add option to display git revision to nixos-version Example use case: git checkout `nixos-version --hash`
2014-12-27 21:43:04 +01:00
case "$1" in
nixos-version: fix syntax error and add -h (#16906) * nixos-version: fix syntax error * nixos-version: add -h parameter
2016-07-13 09:11:32 +02:00
-h|--help)
doc: add man page for nixos-version (#16869)
2016-07-12 14:29:13 +00:00
exec man nixos-version
exit 1
nixos-version: fix syntax error and add -h (#16906) * nixos-version: fix syntax error * nixos-version: add -h parameter
2016-07-13 09:11:32 +02:00
;;
Add option to display git revision to nixos-version Example use case: git checkout `nixos-version --hash`
2014-12-27 21:43:04 +01:00
--hash|--revision)
echo "@nixosRevision@"
;;
*)
echo "@nixosVersion@ (@nixosCodeName@)"
;;
esac
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 333ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API