diff --git a/src/scripts/filter.sh b/src/scripts/filter.sh index 30381b6..f7fbc4d 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 -v "^/config$" | sed "s@${SH_ROOT_MODULE}@.@")" info "auto-detected the following modules: $SH_MODULES @@ -200,4 +200,4 @@ IGNORE fi fi done -fi \ No newline at end of file +fi