cookutils diff web/cookiso.cgi @ rev 951

Minor bug fixes due to the change in the behavior of the dot command in Busybox-1.27.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jul 27 13:36:30 2017 +0300 (2017-07-27)
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	Thu Jul 27 13:36:30 2017 +0300
     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  }