Use stdin to avoid repeating the output file name

pull/1837/head
Simon Marquis 1 year ago committed by GitHub
parent 24f3d3d86e
commit 58313e67d4

@ -121,10 +121,9 @@ echo "$module_paths" | while read -r module_path; do
-Pmodules.graph.output.gv="/tmp/${file_name}.gv" \ -Pmodules.graph.output.gv="/tmp/${file_name}.gv" \
-Pmodules.graph.of.module="${module_path}" </dev/null -Pmodules.graph.of.module="${module_path}" </dev/null
# Convert to SVG using dot, remove unnecessary comments, and reformat # Convert to SVG using dot, then compress and cleanup output
dot -Tsvg "/tmp/${file_name}.gv" > "docs/images/graphs/${file_name}.svg" dot -Tsvg "/tmp/${file_name}.gv" |
# Compress and cleanup SVG file svgo --multipass --pretty --output="docs/images/graphs/${file_name}.svg" -
svgo --multipass --pretty "docs/images/graphs/${file_name}.svg"
# Remove the temporary .gv file # Remove the temporary .gv file
rm "/tmp/${file_name}.gv" rm "/tmp/${file_name}.gv"
fi fi

Loading…
Cancel
Save