From c7daf5be8324c66332e037224eafdc4a9d7c09a7 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 26 Dec 2015 20:04:07 +0100 Subject: Fix #114 --- nix-script-switch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-script-switch.sh b/nix-script-switch.sh index 6d14122..e91fe8c 100755 --- a/nix-script-switch.sh +++ b/nix-script-switch.sh @@ -223,7 +223,7 @@ then stderr "'$NIXPKGS' is not a directory, so can't be a nixpkgs clone" && \ exit 1 - commit=$(nixos-version | cut -d . -f 3 | cut -d " " -f 1) + commit=$(nixos-version | sed -r 's,(.*)\.(.*)\ (.*),\2,') if [[ $DO_UPSTREAM_UPDATE -eq 1 ]] then -- cgit v1.2.3