summaryrefslogtreecommitdiffstats
path: root/nix-utils.sh
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-07-04 16:39:23 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-07-04 16:43:23 +0200
commit4c0e2c7a0cc250bd90cb78a7ee7ddf5eb1247ea6 (patch)
treec7f07ae3a88e47578923100b92748b668a16d463 /nix-utils.sh
parent1c7ebbb0cc217c86df9b58e6ff2d2b50f03531bb (diff)
Fix: grep_generation helper should get the number, nothing else
Diffstat (limited to 'nix-utils.sh')
-rw-r--r--nix-utils.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix-utils.sh b/nix-utils.sh
index 2d84a43..7cd1bb2 100644
--- a/nix-utils.sh
+++ b/nix-utils.sh
@@ -37,7 +37,7 @@ explain() {
}
grep_generation() {
- $* | grep current | cut -d " " -f 2
+ $* | grep current | sed -r 's,\s*([0-9]*)(.*),\1,'
}
current_system_generation() {