* 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
1 changed files with 1 additions and 1 deletions

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/\..*//')