svg-to-png.sh

changeset 162
3ebe1a0ca818
parent 158
5bd755eaa5a8
--- a/svg-to-png.sh	Sat Mar 05 13:18:40 2022 +0200
+++ b/svg-to-png.sh	Sat Mar 05 13:19:59 2022 +0200
@@ -3,6 +3,9 @@
 for svgfile in $(find icons_svg -name '*.svg')
 do
 	pngfile="icons/$(basename ${svgfile%.svg}.png)"
-	echo "$svgfile => $pngfile"
-	convert -background none "${svgfile}" "${pngfile}"
+	if [[ ! -f "${pngfile}" ]]
+	then
+		echo "$svgfile => $pngfile"
+		convert -background none "${svgfile}" "${pngfile}"
+	fi
 done

mercurial