Skip to content

Commit

Permalink
💚 portable sed usage
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelStark committed Aug 6, 2024
1 parent 7fa568e commit 5b1b60c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/references/reference_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ do
done < "$PATTERNS_FILE"

# Finalize results file
sed -i '' '$ s/,$//' "$RESULTS_FILE" # Remove trailing comma
# Remove the trailing comma and add the closing brace
sed -i.bak '$ s/,$//' "$RESULTS_FILE" && rm "${RESULTS_FILE}.bak"
echo "}" >> "$RESULTS_FILE"

# Add summary to report
Expand Down

0 comments on commit 5b1b60c

Please sign in to comment.