3
0
Fork 0
forked from mirrors/nixpkgs

* Grrr. Fix the sort order.

svn path=/nixos/trunk/; revision=23732
This commit is contained in:
Eelco Dolstra 2010-09-10 17:35:13 +00:00
parent 4ae4b7d47f
commit 8edefa2960

View file

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