Fix powershell if statements not checking the return value of calls
This commit is contained in:
12
make.ps1
12
make.ps1
@@ -5,7 +5,7 @@
|
|||||||
###############################################################
|
###############################################################
|
||||||
function All-Command
|
function All-Command
|
||||||
{
|
{
|
||||||
if (CheckForDotnet -eq 1)
|
if ((CheckForDotnet) -eq 1)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ function All-Command
|
|||||||
|
|
||||||
function Clean-Command
|
function Clean-Command
|
||||||
{
|
{
|
||||||
if (CheckForDotnet -eq 1)
|
if ((CheckForDotnet) -eq 1)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -104,7 +104,7 @@ function Dependencies-Command
|
|||||||
cd ..
|
cd ..
|
||||||
echo "Dependencies copied."
|
echo "Dependencies copied."
|
||||||
|
|
||||||
if (CheckForDotnet -eq 1)
|
if ((CheckForDotnet) -eq 1)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -118,7 +118,7 @@ function Dependencies-Command
|
|||||||
|
|
||||||
function Test-Command
|
function Test-Command
|
||||||
{
|
{
|
||||||
if (CheckForUtility -eq 1)
|
if ((CheckForUtility) -eq 1)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -143,7 +143,7 @@ function Check-Command
|
|||||||
echo "Build failed."
|
echo "Build failed."
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CheckForUtility -eq 0)
|
if ((CheckForUtility) -eq 0)
|
||||||
{
|
{
|
||||||
echo "Checking for explicit interface violations..."
|
echo "Checking for explicit interface violations..."
|
||||||
./OpenRA.Utility.exe all --check-explicit-interfaces
|
./OpenRA.Utility.exe all --check-explicit-interfaces
|
||||||
@@ -173,7 +173,7 @@ function Check-Scripts-Command
|
|||||||
|
|
||||||
function Docs-Command
|
function Docs-Command
|
||||||
{
|
{
|
||||||
if (CheckForUtility -eq 1)
|
if ((CheckForUtility) -eq 1)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user