Skip to content

Commit

Permalink
Fix greps (#85)
Browse files Browse the repository at this point in the history
* fix-greps: test new auto-detect greps

* fix-greps: fix

* fix-greps: update workflow name

* fix-greps: clean up

---------

Co-authored-by: Emma Doyle <[email protected]>
  • Loading branch information
emmeowzing and Emma Doyle authored Jul 2, 2023
1 parent ad8836d commit 658205e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .circleci/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ workflows:
scripts:
jobs:
- shellcheck/check:
dir: scripts
exclude: SC2148
2 changes: 1 addition & 1 deletion 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 -vP "^/?(config)$" | sed "s@${SH_ROOT_MODULE}@.@")"
info "auto-detected the following modules:
$SH_MODULES
Expand Down

0 comments on commit 658205e

Please sign in to comment.