cookutils diff web/cookiso.cgi @ rev 990
Update doc/receipts-v2.md with examples (still wip); lighttpd/index.cgi: fix CMake listings beginning with '--'
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Oct 29 18:08:46 2017 +0200 (2017-10-29) |
parents | 1520231a65c2 |
children |
line diff
1.1 --- a/web/cookiso.cgi Mon Jan 09 04:37:12 2017 +0200 1.2 +++ b/web/cookiso.cgi Sun Oct 29 18:08:46 2017 +0200 1.3 @@ -46,9 +46,9 @@ 1.4 1.5 list_isos() { 1.6 cd $iso 1.7 - ls -1t *.iso | head -6 | \ 1.8 + ls -1t *.iso | head -n6 | \ 1.9 while read file; do 1.10 - echo -n $(stat -c '%y' $file | cut -d . -f 1 | sed s/:[0-9]*$//) 1.11 + echo -n $(stat -c '%y' $file | cut -d. -f1 | sed s/:[0-9]*$//) 1.12 echo " : $file" 1.13 done 1.14 }