Skip to content

Commit

Permalink
fix-auto-detection: Add braces
Browse files Browse the repository at this point in the history
  • Loading branch information
Emma Doyle committed Mar 21, 2023
1 parent bc0ba11 commit 40f7a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/filter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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}@.@")"
printf "Auto-detected the following modules:\\n\\n%s\\n\\n" "$SH_MODULES"
fi

Expand Down

0 comments on commit 40f7a0b

Please sign in to comment.