From aa51e77663695fb9cbf9631fd7705de9f9294bd4 Mon Sep 17 00:00:00 2001 From: Chris Long Date: Wed, 23 Sep 2020 23:58:06 -0700 Subject: [PATCH] nits --- Vagrant/scripts/install-redteam.ps1 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Vagrant/scripts/install-redteam.ps1 b/Vagrant/scripts/install-redteam.ps1 index 521bf72..ff88a7e 100644 --- a/Vagrant/scripts/install-redteam.ps1 +++ b/Vagrant/scripts/install-redteam.ps1 @@ -85,9 +85,8 @@ $PSDefaultParameterValues = @{"Invoke-AtomicTest:PathToAtomicsFolder"="C:\Tools\ # Purpose: Downloads the latest release of PurpleSharpNewtonsoft.Json.dll If (-not (Test-Path "c:\Tools\PurpleSharp")) { New-Item -Path "c:\Tools\" -Name "PurpleSharp" -ItemType "directory" -} -Else { - Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) PurpleSharp folder is already existing. Moving On." +} Else { + Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) PurpleSharp folder already exists. Moving On." } Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Determining latest release of Purplesharp..." @@ -97,8 +96,7 @@ $purplesharpDllDownloadURL = "https://github.com/mvelazc0/PurpleSharp/releases/d If (-not (Test-Path "c:\Tools\PurpleSharp\PurpleSharp.exe")) { Invoke-WebRequest -Uri $purplesharpDownloadUrl -OutFile "c:\Tools\PurpleSharp\PurpleSharp.exe" Invoke-WebRequest -Uri $purplesharpDllDownloadUrl -OutFile "c:\Tools\PurpleSharp\Newtonsoft.Json.dll" -} -Else { +} Else { Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) PurpleSharp was already installed. Moving On." }