mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 10:33:37 -05:00
Fixing logic for empty array
This commit is contained in:
parent
0d31bcda2c
commit
1c6d7364d2
1 changed files with 7 additions and 0 deletions
|
@ -1422,6 +1422,13 @@ LintCodebase()
|
|||
#################################
|
||||
# shellcheck disable=SC2207,SC2086
|
||||
LIST_FILES=($(cd "$GITHUB_WORKSPACE" || exit; find . -type f -regex "$FILE_EXTENSIONS" 2>&1))
|
||||
|
||||
############################################################
|
||||
# Set it back to empty if loaded with blanks from scanning #
|
||||
############################################################
|
||||
if [ ${#LIST_FILES[@]} -lt 1 ]; then
|
||||
LIST_FILES=()
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $SKIP_FLAG -eq 0 ]; then
|
||||
|
|
Loading…
Reference in a new issue