From 071ca34f3649ef7df2c1d031f68415f0aceec467 Mon Sep 17 00:00:00 2001 From: katherine Date: Tue, 28 Mar 2017 19:32:04 -0700 Subject: use gifsicle --batch mode --- .config/init/funcs/gifo | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.config/init/funcs/gifo') diff --git a/.config/init/funcs/gifo b/.config/init/funcs/gifo index 854b45a..1ce61c3 100755 --- a/.config/init/funcs/gifo +++ b/.config/init/funcs/gifo @@ -13,9 +13,8 @@ for i in $@; do done du -h "$i" | cut -f 1 | read before echo "$i..." - gifsicle --no-ignore-errors -w -O3 "$i" -o "$i.out" - [[ -f "$ofile" ]] && rm "$i" && mv "$ofile" "$i" && \ - du -h "$i" | cut -f 1 | read after && \ - echo " $before -> $after" || echo " failed" + gifsicle --batch --no-ignore-errors -w -O3 -i "$i" \ + && du -h "$i" | cut -f 1 | read after \ + && echo " $before -> $after" || echo " failed" fi done -- cgit v1.2.3