From ba8b5cfd42d68b1a4dc4d3a17ad3ae6628f1c8e3 Mon Sep 17 00:00:00 2001 From: witty <131909329+0xwitty@users.noreply.github.com> Date: Fri, 20 Dec 2024 22:23:30 +0300 Subject: [PATCH] Remove unnecessary trailing `/` in prepare-docs.sh (#5323) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ernesto GarcĂ­a --- scripts/prepare-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prepare-docs.sh b/scripts/prepare-docs.sh index d1317b09287..0ff5b94dce5 100755 --- a/scripts/prepare-docs.sh +++ b/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