PP_VER e PP_NVER si cercano solo all'inizio della riga

This commit is contained in:
luca.mazzoleni
2024-09-18 14:49:17 +02:00
parent ae32874bd8
commit 165c3d0978
+2 -2
View File
@@ -135,7 +135,7 @@ variables:
# calcolo versione formato stringa
$fPath = "$env:MACH_NAME.mlde";
$vLine = Select-String -path $fPath -Pattern 'PP_VER';
$vLine = Select-String -path $fPath -Pattern '^PP_VER';
$comp = $vLine -split "=";
$env:MACH_VERS = $comp[1].Replace("'","").Trim()
# display versione formato stringa
@@ -143,7 +143,7 @@ variables:
# calcolo versione formato numerico
$fPath = "$env:MACH_NAME.mlde";
$vLine = Select-String -path $fPath -Pattern 'PP_NVER';
$vLine = Select-String -path $fPath -Pattern '^PP_NVER';
$comp = $vLine -split "=";
$env:MACH_VERS_NUM = $comp[1].Replace("'","").Trim()
# display versione formato numerico