Skip to content

Commit

Permalink
Remove unnecessary trailing / in prepare-docs.sh (#5323)
Browse files Browse the repository at this point in the history
Co-authored-by: Ernesto García <[email protected]>
  • Loading branch information
0xwitty and ernestognw authored Dec 20, 2024
1 parent 7526c8f commit ba8b5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/prepare-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ examples_source_dir="contracts/mocks/docs"
examples_target_dir="docs/modules/api/examples"

for f in "$examples_source_dir"/**/*.sol; do
name="${f/#"$examples_source_dir/"/}"
name="${f/#"$examples_source_dir"/}"
mkdir -p "$examples_target_dir/$(dirname "$name")"
sed -Ee '/^import/s|"(\.\./)+|"@openzeppelin/contracts/|' "$f" > "$examples_target_dir/$name"
done
Expand Down

0 comments on commit ba8b5cf

Please sign in to comment.