diff --git a/.circleci/scripts.yml b/.circleci/scripts.yml index 039ecd4..684ae65 100644 --- a/.circleci/scripts.yml +++ b/.circleci/scripts.yml @@ -9,5 +9,4 @@ workflows: scripts: jobs: - shellcheck/check: - dir: scripts exclude: SC2148 diff --git a/src/scripts/filter.sh b/src/scripts/filter.sh index f7fbc4d..7682ae2 100644 --- a/src/scripts/filter.sh +++ b/src/scripts/filter.sh @@ -96,7 +96,7 @@ done # If auto-detecting is enabled (or modules aren't set), check for configs in .circleci/. if [ "$SH_AUTO_DETECT" -eq 1 ] || [ "$SH_MODULES" = "" ]; then # We need to determine what the modules are, ignoring SH_MODULES if it is set. - SH_MODULES="$(find .circleci/ -type f -name "*.yml" | grep -oP "(?<=.circleci/).*(?=.yml)" | grep -v "^/config$" | sed "s@${SH_ROOT_MODULE}@.@")" + SH_MODULES="$(find .circleci/ -type f -name "*.yml" | grep -oP "(?<=.circleci/).*(?=.yml)" | grep -vP "^/?(config)$" | sed "s@${SH_ROOT_MODULE}@.@")" info "auto-detected the following modules: $SH_MODULES