Skip to content

Commit b2d18b0

Browse files
committed
fix(utils): prevent overwriting components_version.md if it already exists
1 parent 78236b6 commit b2d18b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

automation-tools/utils.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,9 @@ write_components_version() {
562562

563563
# Create or overwrite the components_version.md file
564564
local output_file="components_version.md"
565-
echo "# Components Version Summary" > "$output_file"
565+
if [[ ! -f "$output_file" ]]; then
566+
echo "# Components Version Summary" > "$output_file"
567+
fi
566568
echo "" >> "$output_file"
567569

568570
# Loop through all */*/artifacts/version files

0 commit comments

Comments
 (0)