mirror of
https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git
synced 2024-10-18 09:10:34 -04:00
ffsvg.sh: create temp file to avoid overwriting a file with 0 bytes
This commit is contained in:
parent
a130a9c450
commit
4d58875852
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ _run_helpers() {
|
|||
# optimize a SVG
|
||||
if command -v svgo > /dev/null 2>&1; then
|
||||
# use SVGO
|
||||
svgo --config="$SCRIPT_DIR/_svgo.yml" -i "$1"
|
||||
svgo --config="$SCRIPT_DIR/_svgo.yml" -i "$1" -o "$1".tmp
|
||||
mv -f "$1".tmp "$1"
|
||||
elif command -v scour > /dev/null 2>&1; then
|
||||
# use scour
|
||||
"$SCRIPT_DIR/_scour.sh" "$1"
|
||||
|
|
Loading…
Reference in a new issue