test: fix version detection

This commit is contained in:
Sören Weber 2023-06-09 15:08:50 +02:00
parent 35a4fd83ef
commit f3c1badb80
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 2 additions and 3 deletions

View file

@ -1,6 +1,5 @@
@echo off
setlocal enabledelayedexpansion
set /p version=<..\layouts\partials\version.log
set /p version=<..\layouts\partials\version.txt
echo %version%>metrics.%version%.log
echo disableAssetsBusting=true>>config.toml
echo disableGeneratorVersion=true>>config.toml

View file

@ -3,7 +3,7 @@ setlocal enabledelayedexpansion
set hugo_major=0
set hugo_minor=95
set hugo_patch=0
set /p version=<..\layouts\partials\version.log
set /p version=<..\layouts\partials\version.txt
echo %version%>metrics.%version%.hugo.%hugo_major%.%hugo_minor%.%hugo_patch%.log
echo disableAssetsBusting=true>>config.toml
echo disableGeneratorVersion=true>>config.toml