Remove trailing white-space from various files
This commit is contained in:
committed by
abcdefg30
parent
150d02ac0d
commit
3ab4a584ab
14
make.ps1
14
make.ps1
@@ -3,7 +3,7 @@
|
||||
###############################################################
|
||||
########################## FUNCTIONS ##########################
|
||||
###############################################################
|
||||
function All-Command
|
||||
function All-Command
|
||||
{
|
||||
if ((CheckForDotnet) -eq 1)
|
||||
{
|
||||
@@ -28,7 +28,7 @@ function All-Command
|
||||
}
|
||||
}
|
||||
|
||||
function Clean-Command
|
||||
function Clean-Command
|
||||
{
|
||||
if ((CheckForDotnet) -eq 1)
|
||||
{
|
||||
@@ -51,7 +51,7 @@ function Clean-Command
|
||||
Write-Host "Clean complete." -ForegroundColor Green
|
||||
}
|
||||
|
||||
function Version-Command
|
||||
function Version-Command
|
||||
{
|
||||
if ($command.Length -gt 1)
|
||||
{
|
||||
@@ -74,10 +74,10 @@ function Version-Command
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
Write-Host "Unable to locate Git. The version will remain unchanged." -ForegroundColor Red
|
||||
}
|
||||
|
||||
|
||||
if ($version -ne $null)
|
||||
{
|
||||
$version | out-file ".\VERSION"
|
||||
@@ -184,7 +184,7 @@ function CheckForUtility
|
||||
|
||||
function CheckForDotnet
|
||||
{
|
||||
if ((Get-Command "dotnet" -ErrorAction SilentlyContinue) -eq $null)
|
||||
if ((Get-Command "dotnet" -ErrorAction SilentlyContinue) -eq $null)
|
||||
{
|
||||
Write-Host "The 'dotnet' tool is required to compile OpenRA. Please install the .NET Core SDK or Visual Studio and try again. https://dotnet.microsoft.com/download" -ForegroundColor Red
|
||||
return 1
|
||||
@@ -255,7 +255,7 @@ switch ($execute)
|
||||
Default { Write-Host ("Invalid command '{0}'" -f $command) }
|
||||
}
|
||||
|
||||
#In case the script was called without any parameters we keep the window open
|
||||
#In case the script was called without any parameters we keep the window open
|
||||
if ($args.Length -eq 0)
|
||||
{
|
||||
WaitForInput
|
||||
|
||||
Reference in New Issue
Block a user