Skip to content

Commit

Permalink
fix: change grep to filter out root circleci config only (#84)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Tomlinson <[email protected]>
  • Loading branch information
dtomlinson91 and dtomlinson91 authored Jul 2, 2023
1 parent aacc890 commit ad8836d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/filter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -200,4 +200,4 @@ IGNORE
fi
fi
done
fi
fi

0 comments on commit ad8836d

Please sign in to comment.