* "ls -d" -> "echo", since "ls" prints the current directory if

nothing matches.

svn path=/nixos/trunk/; revision=23716
This commit is contained in:
Eelco Dolstra 2010-09-10 12:25:59 +00:00
parent 10a3bd6ffe
commit 7b635ee4ed
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ for link in $((ls -d $defaultConfig/fine-tune/* ) | sort -n); do
done
for generation in $(
(cd /nix/var/nix/profiles && ls -d system-*-link) \
(cd /nix/var/nix/profiles && echo system-*-link) \
| sed 's/system-\([0-9]\+\)-link/\1/' \
| sort -n -r); do
link=/nix/var/nix/profiles/system-$generation-link