Skip to content

Commit

Permalink
Fix linter issues with check-codeowners.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiD2ta committed Jan 24, 2024
1 parent 53d6db2 commit 02c15ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/check-codeowners.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash

cat <<EOF
# See https://github.com/scottrigby/prometheus-helm-charts/issues/12
Expand All @@ -17,6 +17,9 @@ for DIR in ./charts/*
do
FILE="$DIR/Chart.yaml"
DIR="${DIR/#.\///}"
MAINTAINERS=($(yq e '.maintainers.[].name' "$FILE"| sed 's/^/@/' | sort --ignore-case))
MAINTAINERS=()
while IFS='' read -r line; do
MAINTAINERS+=("$line")
done < <(yq e '.maintainers.[].name' "$FILE"| sed 's/^/@/' | sort --ignore-case)
echo "$DIR"/ "${MAINTAINERS[@]}"
done

0 comments on commit 02c15ac

Please sign in to comment.