* 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:
parent
6258845b61
commit
8f4139987e
|
@ -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/\..*//')
|
||||
|
|
Loading…
Reference in New Issue