mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 02:01:02 -05:00
make it actually work
This commit is contained in:
parent
22f9ca1e84
commit
fe1490cad9
1 changed files with 3 additions and 2 deletions
|
@ -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 #
|
||||
|
|
Loading…
Reference in a new issue