Fix SVGO zero percent filtering in CI (#9422)

Because of the environment variable `CI=true` being passed in GitHub Actions to SVGO, it outputted colored text with ANSI escape sequences, which broke the awk 0% filtering (for unchanged files).

Ref: https://github.com/FreshRSS/FreshRSS/pull/9361#discussion_r4147827482
This commit is contained in:
Inverle authored and GitHub committed 2026-10-09 08:17:58 +02:00
1 parent 4a3c6b6b60
commit 07617c48e6
1 file changed
+1 -1
+1 -1
View File
@@ -28,7 +28,7 @@
"markdownlint": "markdownlint-cli2",
"markdownlint_fix": "markdownlint-cli2 --fix",
"rtlcss": "rtlcss -d p/themes/ && find p/themes/ -type f -name '*.rtl.rtl.css' -delete",
"svgo": "find p/ docs/ -name '*.svg' -exec svgo {} + | awk '/:$/{name=$0;next} /KiB/ && !/ - 0% /{print name; print}'",
"svgo": "find p/ docs/ -name '*.svg' -exec svgo --no-color {} + | awk '/:$/{name=$0;next} /KiB/ && !/ - 0% /{print name; print}'",
"stylelint": "stylelint '**/*.css'",
"stylelint_fix": "stylelint --fix '**/*.css'",
"test": "npm run eslint && npm run stylelint && npm run markdownlint",