aboutsummaryrefslogtreecommitdiffstats
path: root/.config/init/funcs/gifo
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2017-03-28 19:32:04 -0700
committerkatherine <shmibs@shmibbles.me>2017-03-28 19:32:04 -0700
commit071ca34f3649ef7df2c1d031f68415f0aceec467 (patch)
tree4f2a21cfef61414c14def48ac87692e9ef660094 /.config/init/funcs/gifo
parent11b366dcf5c55074653940dded1cd9d09a0ff050 (diff)
downloaddotfiles-071ca34f3649ef7df2c1d031f68415f0aceec467.tar.gz
use gifsicle --batch mode
Diffstat (limited to '.config/init/funcs/gifo')
-rwxr-xr-x.config/init/funcs/gifo7
1 files changed, 3 insertions, 4 deletions
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