Fix: Ensure cross-platform compatibility for sed command in CI script

pull/5316/head
Voronor 3 months ago committed by GitHub
parent d11ed2fb0a
commit b1088344ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      scripts/checks/coverage.sh

@ -12,7 +12,11 @@ if [ "${CI:-"false"}" == "true" ]; then
# Foundry coverage # Foundry coverage
forge coverage --report lcov --ir-minimum forge coverage --report lcov --ir-minimum
# Remove zero hits # Remove zero hits
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' '/,0/d' lcov.info
else
sed -i '/,0/d' lcov.info sed -i '/,0/d' lcov.info
fi
fi fi
# Reports are then uploaded to Codecov automatically by workflow, and merged. # Reports are then uploaded to Codecov automatically by workflow, and merged.

Loading…
Cancel
Save