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}]"