summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-01-02 14:18:01 +0100
committerMatthias Beyer <mail@beyermatthias.de>2016-01-02 14:18:01 +0100
commit73935efb5e4fa2eb0c703b546c46de9f8d8d1859 (patch)
treee32be8dce2b2a0604d7458e8811f421c56bf2da0
parent43139cfe501305ad176a4c2caebbd7b3da517187 (diff)
parentc7daf5be8324c66332e037224eafdc4a9d7c09a7 (diff)
Merge pull request #115 from matthiasbeyer/fix-#114v0.3.1
Fix #114
-rwxr-xr-xnix-script-switch.sh2
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