cookutils rev 960
cookiso: learn about 'next'; modules/compressor: fix IFS again.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Aug 26 11:51:39 2017 +0300 (2017-08-26) |
parents | bc95097eff7e |
children | a73e67901f49 |
files | cookiso modules/compressor |
line diff
1.1 --- a/cookiso Thu Aug 17 16:46:43 2017 +0300 1.2 +++ b/cookiso Sat Aug 26 11:51:39 2017 +0300 1.3 @@ -38,9 +38,8 @@ 1.4 # Default to rolling, or: cookiso [cmd] --version=stable 1.5 1.6 case "$version" in 1.7 - stable) string='stable' ;; 1.8 - cooking) string='cooking' ;; 1.9 - *) string='rolling'; version='cooking' ;; 1.10 + stable|cooking|next) string="$version";; 1.11 + *) version='cooking'; string='rolling';; 1.12 esac 1.13 1.14
2.1 --- a/modules/compressor Thu Aug 17 16:46:43 2017 +0300 2.2 +++ b/modules/compressor Sat Aug 26 11:51:39 2017 +0300 2.3 @@ -234,8 +234,8 @@ 2.4 2.5 [ "$oplevel" == '8' ] && oplevel='7 -zm1-9' 2.6 2.7 - IFS=$'\n' 2.8 - for i in $(find $install -type f -name '*.png'); do 2.9 + for i in $(IFS=$'\n' find $install -type f -name '*.png'); do 2.10 + unset IFS 2.11 if ! cached_path=$(query_cache $cache_section "$i"); then 2.12 $use_pq && pngquant -f --skip-if-larger --ext .png --speed 1 "$i" 2.13 $use_op && optipng -quiet -strip all -o$oplevel "$i"