From 25293df5e4c815510b49b75737bfadbe60b8ae38 Mon Sep 17 00:00:00 2001 From: aireilly Date: Thu, 8 Sep 2022 08:36:27 +0100 Subject: [PATCH] don't sed unless in ci --- scripts/check-with-vale.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-with-vale.sh b/scripts/check-with-vale.sh index 3b5fcb7e4f..1a364a039a 100755 --- a/scripts/check-with-vale.sh +++ b/scripts/check-with-vale.sh @@ -13,12 +13,12 @@ if [ -n "${FILES}" ] ; 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/" echo "===============================================================================================================================" echo "" - #clean out conditional markup - sed -i -e 's/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' ${FILES} vale ${FILES} --minAlertLevel=error --glob='*.adoc' --no-exit echo "" if [ "$TRAVIS" = true ] ; then set -x + #clean out conditional markup in Travis CI + sed -i -e 's/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' ${FILES} #run vale again, and this time send to pipedream PR_DATA='' if [ "$1" == false ] ; then