util: strip v prefix from version number in versioninfo generator

This commit is contained in:
nkanaev
2026-06-24 14:48:30 +01:00
parent c90c40aba1
commit 6db9a4b556

View File

@@ -51,8 +51,9 @@ while [[ $# -gt 0 ]]; do
esac esac
done done
# Replace dots with commas for version_comma # Strip leading 'v' and replace dots with commas for version_comma
version_comma="${version//./,}" version_num="${version#v}"
version_comma="${version_num//./,}"
# Use a here document for the template with ENDFILE delimiter # Use a here document for the template with ENDFILE delimiter
cat <<ENDFILE > "$outfile" cat <<ENDFILE > "$outfile"