Skip to content

Commit 3807015

Browse files
committed
don't sed unless in ci
1 parent ffe5e75 commit 3807015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/check-with-vale.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ if [ -n "${FILES}" ] ;
1313
echo "Read about the error terms that cause the build to fail at https://redhat-documentation.github.io/vale-at-red-hat/docs/reference-guide/termserrors/"
1414
echo "==============================================================================================================================="
1515
echo ""
16-
#clean out conditional markup
17-
sed -i -e 's/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' ${FILES}
1816
vale ${FILES} --minAlertLevel=error --glob='*.adoc' --no-exit
1917
echo ""
2018
if [ "$TRAVIS" = true ] ; then
2119
set -x
20+
#clean out conditional markup in Travis CI
21+
sed -i -e 's/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' ${FILES}
2222
#run vale again, and this time send to pipedream
2323
PR_DATA=''
2424
if [ "$1" == false ] ; then

0 commit comments

Comments
 (0)