fix erlang version output

This commit is contained in:
Aleksandr Chebotov
2020-10-05 10:38:36 +03:00
parent 53b1234edd
commit ce454f523e

View File

@@ -32,9 +32,7 @@ function Get-ClangVersions {
}
function Get-ErlangVersion {
$result = Get-CommandResult "erl -version"
$result.Output -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
$version = $Matches.version
$version = (erl -eval 'erlang:display(erlang:system_info(version)), halt().' -noshell).Trim('"')
return "Erlang $version"
}