Remove unnecessary trailing `/` in prepare-docs.sh (#5323)

Co-authored-by: Ernesto García <ernestognw@gmail.com>
pull/5396/head
witty 1 month ago committed by GitHub
parent 7526c8fe3b
commit ba8b5cfd42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      scripts/prepare-docs.sh

@ -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

Loading…
Cancel
Save