summaryrefslogtreecommitdiffstats
path: root/nix-utils.sh
diff options
context:
space:
mode:
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() {