From 02e2e313f975992a6b79bef8dc73bc53db44f6ae Mon Sep 17 00:00:00 2001 From: Max Thomson Date: Wed, 13 Jul 2022 11:20:10 -0700 Subject: [PATCH] Fix secondary rules extension (#3136) --- lib/functions/linterRules.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions/linterRules.sh b/lib/functions/linterRules.sh index 62dcffa0..d8c17e9f 100755 --- a/lib/functions/linterRules.sh +++ b/lib/functions/linterRules.sh @@ -113,9 +113,9 @@ GetLinterRules() { # Set the path SECONDARY_LANGUAGE_FILE_PATH='' if [ -z "${LINTER_RULES_PATH}" ]; then - SECONDARY_LANGUAGE_FILE_PATH="${GITHUB_WORKSPACE}/${!LANGUAGE_FILE_NAME}" + SECONDARY_LANGUAGE_FILE_PATH="${GITHUB_WORKSPACE}/${SECONDARY_FILE_NAME}" else - SECONDARY_LANGUAGE_FILE_PATH="${GITHUB_WORKSPACE}/${LINTER_RULES_PATH}/${!LANGUAGE_FILE_NAME}" + SECONDARY_LANGUAGE_FILE_PATH="${GITHUB_WORKSPACE}/${LINTER_RULES_PATH}/${SECONDARY_FILE_NAME}" fi debug "${LANGUAGE_NAME} language rule file has a secondary rules file name to check (${SECONDARY_FILE_NAME}). Path:[${SECONDARY_LANGUAGE_FILE_PATH}]"