tazbug rev 56
Fix listing last bug: ls is wrong but sort -n work
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jan 07 19:09:39 2014 +0100 (2014-01-07) |
parents | 05ac6fa12843 |
children | 519564b13314 |
files | web/bugs.cgi |
line diff
1.1 --- a/web/bugs.cgi Tue Jan 07 18:59:47 2014 +0100 1.2 +++ b/web/bugs.cgi Tue Jan 07 19:09:39 2014 +0100 1.3 @@ -832,7 +832,7 @@ 1.4 EOT 1.5 # List last 3 bugs 1.6 echo "<pre>" 1.7 - for lb in $(ls -r ${bugdir} | head -n 3) 1.8 + for lb in $(ls ${bugdir} | sort -n | tail -n 3) 1.9 do 1.10 list_bug ${lb} 1.11 done