Maybe we need the pipe?

This commit is contained in:
Ryan Curtin
2020-10-09 10:49:06 -04:00
parent 7aaf1d7482
commit 58edc52e70
+1 -1
View File
@@ -152,7 +152,7 @@ steps:
cp doc\examples dist\win-installer\staging -recurse
cp src\mlpack\tests\data\german.csv dist\win-installer\staging\examples\sample-ml-app\sample-ml-app\data\
# Check current git version or mlpack version.
$ver = (Get-Content "src\mlpack\core\util\version.hpp" where {$_ -like "*MLPACK_VERSION*"});
$ver = (Get-Content "src\mlpack\core\util\version.hpp" | where {$_ -like "*MLPACK_VERSION*"});
$env:MLPACK_VERSION += $ver[0].substring($ver[0].length - 1, 1) + '.';
$env:MLPACK_VERSION += $ver[1].substring($ver[1].length - 1, 1) + '.';
$env:MLPACK_VERSION += $ver[2].substring($ver[2].length - 1, 1);