From d828a789181cd539d612d8d6b1a3b0660dc897a0 Mon Sep 17 00:00:00 2001 From: Simon Behar Date: Fri, 12 Feb 2021 11:14:05 -0800 Subject: [PATCH] Apply suggestions from code review Signed-off-by: Simon Behar --- hack/check-env-doc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/check-env-doc.sh b/hack/check-env-doc.sh index 83a99c5b0c89..f76f2617932f 100755 --- a/hack/check-env-doc.sh +++ b/hack/check-env-doc.sh @@ -1,6 +1,6 @@ #!/bin/bash -echo "Checking env variables doc for completness..." +echo "Checking docs/environment-variables.md for completeness..." function check-used { grep "| \`" < ./docs/environment-variables.md \ @@ -9,7 +9,7 @@ function check-used { var="${x%\`}"; var="${var#\`}"; if ! grep -qR --exclude="*_test.go" "$var" ./workflow ./persist ./util; then - echo "Documented variable $var is not used anywhere"; + echo "Documented variable $var in docs/environment-variables.md is not used anywhere"; exit 1; fi; done @@ -24,7 +24,7 @@ function check-documented { var="${x%\"}"; var="${var#\"}"; if ! grep -q "$var" docs/environment-variables.md; then - echo "Variable $var not documented in docs/environment-variables"; + echo "Variable $var not documented in docs/environment-variables.md"; exit 1; fi; done