From 6db9a4b55687f45b8f397909b0201fe9c6877153 Mon Sep 17 00:00:00 2001 From: nkanaev Date: Wed, 24 Jun 2026 14:48:30 +0100 Subject: [PATCH] util: strip v prefix from version number in versioninfo generator --- etc/windows_versioninfo.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/windows_versioninfo.sh b/etc/windows_versioninfo.sh index 64d1f7c..d7c287a 100755 --- a/etc/windows_versioninfo.sh +++ b/etc/windows_versioninfo.sh @@ -51,8 +51,9 @@ while [[ $# -gt 0 ]]; do esac done -# Replace dots with commas for version_comma -version_comma="${version//./,}" +# Strip leading 'v' and replace dots with commas for version_comma +version_num="${version#v}" +version_comma="${version_num//./,}" # Use a here document for the template with ENDFILE delimiter cat < "$outfile"