Skip to content

Commit

Permalink
fix: remove multiple sed commands (#3526)
Browse files Browse the repository at this point in the history
  • Loading branch information
ossdhaval authored Jan 5, 2023
1 parent 0233cd1 commit 2b906db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automation/docs/generate-javadocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"
Expand Down

0 comments on commit 2b906db

Please sign in to comment.