Skip to content

Commit 3a6a6cc

Browse files
Merge pull request #50034 from aireilly/undo-vale-script-change
2 parents e7f951a + b031971 commit 3a6a6cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/check-with-vale.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ if [ -n "${FILES}" ] ;
1414
echo "==============================================================================================================================="
1515
echo ""
1616
#clean out conditional markup
17-
sed -i -e 's/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' "${FILES}"
18-
vale "${FILES}" --minAlertLevel=error --glob='*.adoc' --no-exit
17+
sed -i -e 's/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' ${FILES}
18+
vale ${FILES} --minAlertLevel=error --glob='*.adoc' --no-exit
1919
echo ""
2020
if [ "$TRAVIS" = true ] ; then
2121
set -x
@@ -27,7 +27,7 @@ if [ -n "${FILES}" ] ;
2727
PR_DATA='{"PR": [{"Number": "'"$1"'", "SHA": "'"$2"'"}]',
2828
fi
2929
echo "${PR_DATA}" > vale_errors.json
30-
ERROR_DATA=$(vale "${FILES}" --minAlertLevel=error --glob='*.adoc' --output=JSON --no-exit)
30+
ERROR_DATA=$(vale ${FILES} --minAlertLevel=error --glob='*.adoc' --output=JSON --no-exit)
3131
echo "${ERROR_DATA:1}" >> vale_errors.json
3232
LAST_LINE=$(tail -n1 vale_errors.json)
3333
if echo "$LAST_LINE" | grep -q ',.$'; then

0 commit comments

Comments
 (0)