• R/O
  • HTTP
  • SSH
  • HTTPS

ariya-icons: Commit

Ariya icon theme for use with Katana


Commit MetaInfo

Revision54ae81b01e12d72771035c83a1187972216052eb (tree)
Time2015-11-26 15:26:03
AuthorIvailo Monev <xakepa10@gmai...>
CommiterIvailo Monev

Log Message

optimize.sh: handle files that are de-optimized

Change Summary

Incremental Difference

--- a/optimize.sh
+++ b/optimize.sh
@@ -2,8 +2,14 @@
22
33 set -e
44
5+catchlarger() {
6+ if [ "$?" != "98" ];then
7+ exit $?
8+ fi
9+}
10+
511 for i in $(find -type f -name '*.png');do
6- pngquant "$i" -o "$i-optimized"
12+ pngquant -o "$i-optimized" --skip-if-larger -- "$i" || catchlarger
713 if [ -e "$i-optimized" ];then
814 rm -f "$i"
915 mv "$i-optimized" "$i"
Show on old repository browser