wok diff make-slitaz-icons/stuff/mksit.sh @ rev 20892
Remove ashism ==
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 26 09:14:07 2019 +0100 (2019-02-26) |
parents | f0167c6f681a |
children | b77dd7187137 |
line diff
1.1 --- a/make-slitaz-icons/stuff/mksit.sh Tue Nov 01 02:58:15 2016 +0200 1.2 +++ b/make-slitaz-icons/stuff/mksit.sh Tue Feb 26 09:14:07 2019 +0100 1.3 @@ -42,7 +42,7 @@ 1.4 1.5 # Color output 1.6 colored() { 1.7 - if [ "$color" == 'yes' ]; then 1.8 + if [ "$color" = 'yes' ]; then 1.9 colorize $@ 1.10 else 1.11 echo $2 1.12 @@ -80,7 +80,7 @@ 1.13 BASE_FINDICON="$(basename $FINDICON .png)" 1.14 BASE_FINDICON="$(basename $BASE_FINDICON .svg)" 1.15 1.16 - if [ "$1" == "$BASE_FINDICON" ]; then 1.17 + if [ "$1" = "$BASE_FINDICON" ]; then 1.18 colored 32 "+ $1($SIZE)" 1.19 else 1.20 colored 34 "+ $1($SIZE) <= $(basename $FINDICON)" 1.21 @@ -180,12 +180,12 @@ 1.22 shift 1.23 done 1.24 1.25 -if [ "x$FROM" == "x" -o "x$TO" == "x" ]; then 1.26 +if [ "x$FROM" = "x" -o "x$TO" = "x" ]; then 1.27 echo "There are no required parameters (-f or -t)!"; exit 1 1.28 fi 1.29 1.30 echo "Check components..." 1.31 -if [ $IS == 'yes' ]; then 1.32 +if [ $IS = 'yes' ]; then 1.33 echo -n "Inkscape: " 1.34 if [ -x "$(which inkscape)" ]; then 1.35 echo "$(which inkscape)" 1.36 @@ -193,7 +193,7 @@ 1.37 colored 31 "not found! Force '-is'"; IS='no' 1.38 fi 1.39 fi 1.40 -if [ $OP == 'yes' ]; then 1.41 +if [ $OP = 'yes' ]; then 1.42 echo -n "Optipng: " 1.43 if [ -x "$(which optipng)" ]; then 1.44 echo "$(which optipng)" 1.45 @@ -816,7 +816,7 @@ 1.46 1.47 ##### 1.48 1.49 -if [ "$IS" == "yes" ]; then 1.50 +if [ "$IS" = "yes" ]; then 1.51 echo -n "Inkscape... " 1.52 # convert svg to png 1.53 # rarely inkscape may fail, good that we leave original file 1.54 @@ -826,7 +826,7 @@ 1.55 1.56 ##### 1.57 1.58 -if [ "$OP" == "yes" ]; then 1.59 +if [ "$OP" = "yes" ]; then 1.60 echo -n "Optipng... " 1.61 # re-compress png files 1.62 find $TO -type f -iname '*.png' -exec optipng -quiet -strip all $PNGOPT {} \; 1.63 @@ -835,7 +835,7 @@ 1.64 1.65 ##### 1.66 1.67 -if [ "$SL" == "yes" ]; then 1.68 +if [ "$SL" = "yes" ]; then 1.69 echo -n "Symlinks... " 1.70 MD5FILE=$(mktemp); find $TO -type f -exec md5sum {} \; | sort > $MD5FILE 1.71 # substitute repeated files by symlinks