Skip to content

Commit

Permalink
fix collector module check for standalone collector dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Jun 9, 2022
1 parent 6c3d34d commit c8d6dc0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/scripts/check-collector-module-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ check_collector_versions_correct() {
version=$(echo "$mod_line" | cut -d" " -f2)

# To account for a module on its own 'require' line,
# the version field is shifted right by 1
if [ "$version" == "$collector_module" ]; then
# the version field is shifted right by 1. Match
# with or without a trailing space at the end to account
# for the space at the end of some collector modules
if [ "$version" == "$collector_module" ] || [ "$version " == "$collector_module" ]; then
version=$(echo "$mod_line" | cut -d" " -f3)
fi

Expand Down

0 comments on commit c8d6dc0

Please sign in to comment.