mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-23 07:42:13 -05:00
wildcard search (#1608)
This commit is contained in:
parent
cc1f9932f2
commit
ebf6194d0e
1 changed files with 4 additions and 3 deletions
|
@ -8,7 +8,8 @@
|
||||||
########################## FUNCTION CALLS BELOW ################################
|
########################## FUNCTION CALLS BELOW ################################
|
||||||
################################################################################
|
################################################################################
|
||||||
################################################################################
|
################################################################################
|
||||||
|
################################################################################
|
||||||
|
#### Function DetectAnsibleFile ################################################
|
||||||
DetectAnsibleFile() {
|
DetectAnsibleFile() {
|
||||||
ANSIBLE_DIRECTORY="${1}"
|
ANSIBLE_DIRECTORY="${1}"
|
||||||
FILE="${2}"
|
FILE="${2}"
|
||||||
|
@ -18,7 +19,7 @@ DetectAnsibleFile() {
|
||||||
if [[ ${FILE} == *"vault.yml" ]] || [[ ${FILE} == *"galaxy.yml" ]] || [[ ${FILE} == *"vault.yaml" ]] || [[ ${FILE} == *"galaxy.yaml" ]]; then
|
if [[ ${FILE} == *"vault.yml" ]] || [[ ${FILE} == *"galaxy.yml" ]] || [[ ${FILE} == *"vault.yaml" ]] || [[ ${FILE} == *"galaxy.yaml" ]]; then
|
||||||
debug "${FILE} is a file that super-linter ignores. Ignoring it..."
|
debug "${FILE} is a file that super-linter ignores. Ignoring it..."
|
||||||
return 1
|
return 1
|
||||||
elif [[ "$(dirname "${FILE}")" == "${ANSIBLE_DIRECTORY}" ]]; then
|
elif [[ "$(dirname "${FILE}")" == *"${ANSIBLE_DIRECTORY}"* ]]; then
|
||||||
debug "${FILE} is an Ansible-related file."
|
debug "${FILE} is an Ansible-related file."
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
@ -26,7 +27,7 @@ DetectAnsibleFile() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
################################################################################
|
||||||
#### Function DetectOpenAPIFile ################################################
|
#### Function DetectOpenAPIFile ################################################
|
||||||
DetectOpenAPIFile() {
|
DetectOpenAPIFile() {
|
||||||
################
|
################
|
||||||
|
|
Loading…
Reference in a new issue