Skip to content

Commit

Permalink
fixup! ci: provide means to override build-meta output
Browse files Browse the repository at this point in the history
  • Loading branch information
blocktrron committed Aug 9, 2024
1 parent d6e4e12 commit f96037a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/validate-overrides.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ OVERRIDES_DIR="$SCRIPT_DIR/overrides/build-meta"
FILES_WITH_TWO_LINES=""

# Find all files which contain at lest two lines
for file in $(find "$OVERRIDES_DIR" -type f); do
while IFS= read -r -d '' file
do
if [ "$(wc -l < "$file")" -gt 1 ]; then
FILES_WITH_TWO_LINES="$FILES_WITH_TWO_LINES $file"
fi
done
done < <(find "$OVERRIDES_DIR" -type f -print0)

# Check for newlines in overrides
if [ -n "$FILES_WITH_TWO_LINES" ]; then
Expand Down

0 comments on commit f96037a

Please sign in to comment.