diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-09-08 10:50:15 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-09-08 10:50:15 +0200 |
commit | e9fd4bba0d8bf404a1f2d24e1d36bd68cbbfdbaa (patch) | |
tree | 77a5794a9321952e071a1885a7b0d28978280b23 /nix-script-show-commit.sh | |
parent | 4dcf630cbc02cc1ce408ec9206c41bb8ee7a4d56 (diff) |
Rewrite "nix-script show-commit" with awk
Diffstat (limited to 'nix-script-show-commit.sh')
-rwxr-xr-x | nix-script-show-commit.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix-script-show-commit.sh b/nix-script-show-commit.sh index d415288..36d60cf 100755 --- a/nix-script-show-commit.sh +++ b/nix-script-show-commit.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash -nixos-version | cut -d . -f 3 | cut -d " " -f 1 +nixos-version | awk -F. '{print $3}' | awk '{print $1}' |