diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 7fddd3dc..2b003930 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -95,7 +95,7 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } diff --git a/scripts/test_cmake.psm1 b/scripts/test_cmake.psm1 index a9eabb5b..cc0446a8 100644 --- a/scripts/test_cmake.psm1 +++ b/scripts/test_cmake.psm1 @@ -46,7 +46,7 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } diff --git a/scripts/test_eigen.psm1 b/scripts/test_eigen.psm1 index 1bbb7918..2ff0eb32 100644 --- a/scripts/test_eigen.psm1 +++ b/scripts/test_eigen.psm1 @@ -47,7 +47,7 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } diff --git a/scripts/test_rpclib.psm1 b/scripts/test_rpclib.psm1 index 34368885..de391dd1 100644 --- a/scripts/test_rpclib.psm1 +++ b/scripts/test_rpclib.psm1 @@ -48,9 +48,10 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } + function Get-RpcLib { Write-Output '' diff --git a/scripts/test_unrealasset.psm1 b/scripts/test_unrealasset.psm1 index 709d385e..8865305c 100644 --- a/scripts/test_unrealasset.psm1 +++ b/scripts/test_unrealasset.psm1 @@ -47,7 +47,7 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } diff --git a/scripts/test_visualstudio.psm1 b/scripts/test_visualstudio.psm1 index 14b0c555..5efdc0e3 100644 --- a/scripts/test_visualstudio.psm1 +++ b/scripts/test_visualstudio.psm1 @@ -45,9 +45,10 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } + function Get-VsInstance { param( [Parameter()]