Skip to content

Commit 055c025

Browse files
committed
format
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent f3ff212 commit 055c025

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/lint-bom.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set -euo pipefail
44

55
function first_artifact_id() {
66
local bom_file="$1"
7-
grep '<artifactId>' "$bom_file" | head -n 2 | tail -n 1 | sed 's/.*<artifactId>\(.*\)<\/artifactId>.*/\1/'
7+
grep '<artifactId>' "$bom_file" | head -n 2 | tail -n 1 |
8+
sed 's/.*<artifactId>\(.*\)<\/artifactId>.*/\1/'
89
}
910

1011
function add_dir() {
@@ -53,7 +54,8 @@ for dir in prometheus-metrics-tracer/prometheus-metrics*; do
5354
done
5455

5556
want=$(echo "$want" | sort | uniq)
56-
have="$(grep '<artifactId>prometheus-metrics' prometheus-metrics-bom/pom.xml | sed 's/.*<artifactId>\(.*\)<\/artifactId>.*/\1/' | sort)"
57+
have="$(grep '<artifactId>prometheus-metrics' prometheus-metrics-bom/pom.xml |
58+
sed 's/.*<artifactId>\(.*\)<\/artifactId>.*/\1/' | sort)"
5759

5860
if [[ "$want" != "$have" ]]; then
5961
echo "The BOM file prometheus-metrics-bom/bom.xml does not match the current directory contents."

0 commit comments

Comments
 (0)