diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-05-23 19:42:03 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-05-23 19:42:03 +0200 |
commit | 50614da3cfd440e810497c90160ab746a9678034 (patch) | |
tree | ce01e2fbc24694354dcb9decc314f443c11e2618 /nix-script-show-commit.sh | |
parent | ef8930a7fd8c70f5e5e580fd7f8eb7289db930e7 (diff) |
Add show-commit command for showing current commit the system is build from
Diffstat (limited to 'nix-script-show-commit.sh')
-rwxr-xr-x | nix-script-show-commit.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nix-script-show-commit.sh b/nix-script-show-commit.sh new file mode 100755 index 0000000..d415288 --- /dev/null +++ b/nix-script-show-commit.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +nixos-version | cut -d . -f 3 | cut -d " " -f 1 + |