mirror of https://github.com/zulip/zulip.git
optimize-svg: Fix shellcheck warnings.
In tools/optimize-svg line 3: if [ `node_modules/.bin/svgo -f static/images/integrations/logos | grep -o '\.[0-9]% = ' | wc -l` -ge 1 ] ^-- SC2046: Quote this to prevent word splitting. ^-- SC2006: Use $(..) instead of legacy `..`. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
cd451491ff
commit
d7c7e8dd7c
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ `node_modules/.bin/svgo -f static/images/integrations/logos | grep -o '\.[0-9]% = ' | wc -l` -ge 1 ]
|
if [ "$(node_modules/.bin/svgo -f static/images/integrations/logos | grep -o '\.[0-9]% = ' | wc -l)" -ge 1 ]
|
||||||
then
|
then
|
||||||
echo "ERROR: svgo detected unoptimized SVG files in the \`static/images/integrations/logos\` folder." 1>&2
|
echo "ERROR: svgo detected unoptimized SVG files in the \`static/images/integrations/logos\` folder." 1>&2
|
||||||
echo "Please run \`svgo -f static/images/integrations/logos\` and commit the file changes to optimize them."
|
echo "Please run \`svgo -f static/images/integrations/logos\` and commit the file changes to optimize them."
|
||||||
|
|
Loading…
Reference in New Issue