Skip to content

Commit 5165a28

Browse files
committed
fix: sed POSIX compatibility
1 parent 77b0ee0 commit 5165a28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/scripts/docPreprocess.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
66
# Known issue: https://github.com/foundry-rs/foundry/issues/4118
77
for tag in authors reviewers auditors bounties deployments tools
88
do
9-
find $SCRIPT_DIR/../src/ -type f -name '*.sol' | xargs sed -i '' "/^.*@$tag.*$/d"
9+
find $SCRIPT_DIR/../src/ -type f -name '*.sol' | xargs sed -i.bak "/^.*@$tag.*$/d"
1010
done
1111

12-
echo "Use 'git restore src/' to revert the changes"
12+
echo "Use 'git restore src/ && rm src/**/*.sol.bak' to revert the changes"
1313

1414

0 commit comments

Comments
 (0)