fix
This commit is contained in:
@@ -10,27 +10,9 @@ function Write2 {
|
||||
Write-Output "-----------------------------------------------"
|
||||
}
|
||||
|
||||
function ReadParams {
|
||||
Param ([string] $str1)
|
||||
|
||||
Get-Content -Path $str1| ForEach-Object {
|
||||
$x = $_.split('=');
|
||||
$params[$x[0]] = $x[1];
|
||||
}
|
||||
}
|
||||
|
||||
$publish_folder="_Published"
|
||||
$params_file="params.txt"
|
||||
|
||||
$dotnet = $args | where { $_ -eq "dotnet" }
|
||||
$spa = $args | where { $_ -eq "spa" }
|
||||
$file = $args | where { ($_ -ne "dotnet" -and $_ -ne "spa") }
|
||||
|
||||
if ($file) {
|
||||
$params_file = $file
|
||||
}
|
||||
|
||||
ReadParams($params_file)
|
||||
|
||||
if ((!$dotnet) -and (!$spa)) {
|
||||
$dotnet = "dotnet"
|
||||
|
||||
Reference in New Issue
Block a user