From fe1490cad9a5e329737a6f9ba95e149a18d11ae1 Mon Sep 17 00:00:00 2001 From: John Wiebalk Date: Thu, 9 Jan 2020 20:08:31 -0500 Subject: [PATCH] make it actually work --- lib/linter.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index e00e6c8c..1b25539d 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1915,7 +1915,7 @@ LintDockerFiles() # Name of the linter # ###################### LINTER_NAME="dockerfilelint" - LINTER_PATH="node_modules/dockerfilelint/bin/dockerfilelint" + LINTER_PATH="/node_modules/dockerfilelint/bin/dockerfilelint" ######################################### # Validate we have shellcheck installed # @@ -1962,6 +1962,7 @@ LintDockerFiles() ################################# # shellcheck disable=SC2207 LIST_FILES=($(cd "$GITHUB_WORKSPACE" || exit; find . -type f -name "Dockerfile" 2>&1)) + echo "testing $LIST_FILES" fi ################## @@ -1984,7 +1985,7 @@ LintDockerFiles() ################################ # Lint the file with the rules # ################################ - LINT_CMD=$("$LINTER_PATH" "$FILE" 2>&1) + LINT_CMD=$(cd "$GITHUB_WORKSPACE" || exit; "$LINTER_PATH" "$FILE" 2>&1) ####################### # Load the error code #