cookutils rev 978

modules/compressor: process png images with the spaces in the path.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 13 14:01:28 2017 +0300 (2017-10-13)
parents beb277de87f5
children 0585b2e71bfc
files modules/compressor
line diff
     1.1 --- a/modules/compressor	Sat Oct 07 23:55:44 2017 +0200
     1.2 +++ b/modules/compressor	Fri Oct 13 14:01:28 2017 +0300
     1.3 @@ -234,7 +234,8 @@
     1.4  
     1.5  	[ "$oplevel" == '8' ] && oplevel='7 -zm1-9'
     1.6  
     1.7 -	for i in $(IFS=$'\n' find $install -type f -name '*.png'); do
     1.8 +	IFS=$'\n'
     1.9 +	for i in $(find $install -type f -name '*.png'); do
    1.10  		unset IFS
    1.11  		if ! cached_path=$(query_cache $cache_section "$i"); then
    1.12  			$use_pq && pngquant -f --skip-if-larger --ext .png --speed 1 "$i"