From 8edefa2960a48c0e97845b602f95c6366d34010b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 10 Sep 2010 17:35:13 +0000 Subject: [PATCH] * Grrr. Fix the sort order. svn path=/nixos/trunk/; revision=23732 --- modules/installer/grub/grub-menu-builder.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/installer/grub/grub-menu-builder.sh b/modules/installer/grub/grub-menu-builder.sh index 0605df5f52c..4caafe9da63 100644 --- a/modules/installer/grub/grub-menu-builder.sh +++ b/modules/installer/grub/grub-menu-builder.sh @@ -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/\..*//')