Sat, 05 Mar 2022 12:47:10 +0200
fix crash when loading a file
`object` is moved so we cannot access it after moving
158 | 1 | #!/bin/bash |
2 | mkdir --parents icons | |
3 | for svgfile in $(find icons_svg -name '*.svg') | |
4 | do | |
5 | pngfile="icons/$(basename ${svgfile%.svg}.png)" | |
6 | echo "$svgfile => $pngfile" | |
7 | convert -background none "${svgfile}" "${pngfile}" | |
8 | done |