1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-17 16:40:12 +00:00

* Regex listing the system generations was selecting the number from

only the first generation in the list.  (From Karn Kallio.)

svn path=/nixos/trunk/; revision=23728
This commit is contained in:
Eelco Dolstra 2010-09-10 15:47:06 +00:00
parent 6258845b61
commit 8f4139987e

View file

@ -244,7 +244,7 @@ done
for generation in $(
(cd /nix/var/nix/profiles && echo system-*-link) \
| sed 's/system-\([0-9]\+\)-link/\1/' \
| sed 's/system-\([0-9]\+\)-link/\1/g' \
| sort -n -r); do
link=/nix/var/nix/profiles/system-$generation-link
date=$(stat --printf="%y\n" $link | sed 's/\..*//')