From 2b906db77cebe2ce2e8c5af1bd40aa23c4181691 Mon Sep 17 00:00:00 2001 From: Dhaval D <343411+ossdhaval@users.noreply.github.com> Date: Thu, 5 Jan 2023 19:50:04 +0530 Subject: [PATCH] fix: remove multiple sed commands (#3526) --- automation/docs/generate-javadocs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/docs/generate-javadocs.sh b/automation/docs/generate-javadocs.sh index 2527fb71409..60666424522 100644 --- a/automation/docs/generate-javadocs.sh +++ b/automation/docs/generate-javadocs.sh @@ -9,7 +9,7 @@ for module in $JVM_PROJECTS echo "Move generated javadocs to respective doc site location" echo "getting locations where javadocs got generated" - mapfile -t generated_doc_paths < <(find "$module" -type d -path '*/target/site/apidocs' | sed -r 's|/[^/]+$||' | sed -r 's|/[^/]+$||' | sed -r 's|/[^/]+$||') + mapfile -t generated_doc_paths < <(find "$module" -type d -path '*/target/site/apidocs' | sed 's/\/target\/site\/apidocs//') echo "move javadocs from each location to respective documentation site location" for source_path in "${generated_doc_paths[@]}"