Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Aug 27, 2024
1 parent cdc94c1 commit 35a4b4c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,14 @@ all_directories+=$'\n'
all_directories+=$(discover_directories "$TESTS_DIR")

# Sort, filter, and generate JSON objects
echo "["
json_output=$(mktemp)
echo '[' > "$json_output"
echo "$all_directories" | sort | while read -r dir; do
if ! is_excluded "$dir"; then
generate_json "$dir"
fi
done | sed '$ s/,$//' # Remove the last comma
echo "]"
done | sed '$ s/,$//' >> "$json_output" # Remove the last comma
echo ']' >> "$json_output"

# Output the Base64-encoded JSON
base64 "$json_output"

0 comments on commit 35a4b4c

Please sign in to comment.