Skip to content

Commit

Permalink
fix(change_color): cleaner file structure when exporting gtk 3.0 or 3…
Browse files Browse the repository at this point in the history
….20 only
  • Loading branch information
actionless committed Jun 16, 2024
1 parent 2c81293 commit f9c85de
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
12 changes: 10 additions & 2 deletions change_color.sh
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,16 @@ rm -fr ./Makefile gtk-3.*/scss

for FILEPATH in "${SVG_PREVIEWS[@]}"; do
# shellcheck disable=SC2001
rsvg-convert --format=png -o "$(sed -e 's/svg$/png/' <<< "${FILEPATH}")" "${FILEPATH}"
rm "${FILEPATH}"
if [[ -f "$FILEPATH" ]] ; then
rsvg-convert --format=png -o "$(sed -e 's/svg$/png/' <<< "${FILEPATH}")" "${FILEPATH}"
rm "${FILEPATH}"
fi
done

if [[ ${MAKE_OPTS} = "gtk320" ]]; then
rm -fr ./gtk-3.0/
elif [[ ${MAKE_OPTS} = "gtk3" ]]; then
rm -fr ./gtk-3.20/
fi

exit 0
Binary file removed src/gtk-3.0/thumbnail.png
Binary file not shown.
1 change: 0 additions & 1 deletion src/gtk-3.20/thumbnail.png

This file was deleted.

0 comments on commit f9c85de

Please sign in to comment.