diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-01-02 14:18:01 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-01-02 14:18:01 +0100 |
commit | 73935efb5e4fa2eb0c703b546c46de9f8d8d1859 (patch) | |
tree | e32be8dce2b2a0604d7458e8811f421c56bf2da0 | |
parent | 43139cfe501305ad176a4c2caebbd7b3da517187 (diff) | |
parent | c7daf5be8324c66332e037224eafdc4a9d7c09a7 (diff) |
Merge pull request #115 from matthiasbeyer/fix-#114v0.3.1
Fix #114
-rwxr-xr-x | nix-script-switch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |