From 20ff7dc1a831aac552e8432fcf891381862f5957 Mon Sep 17 00:00:00 2001 From: Joker2a Date: Wed, 7 Dec 2022 17:29:46 +0100 Subject: [PATCH] Fix the bug Bug : https://github.com/hausec/ADAPE-Script/issues/4 Thanks to https://github.com/IAMinZoho --- ADAPE.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ADAPE.ps1 b/ADAPE.ps1 index 14497eb..cc2b8e8 100644 --- a/ADAPE.ps1 +++ b/ADAPE.ps1 @@ -86,9 +86,12 @@ New-Item -ItemType Directory -Force -Path $path | Out-Null Write-Host "Capture folder located at $path" -ForegroundColor Green Write-Host "OS Detected: $version" If( $OS -match "10" -or - $OS -match "2012" -or - $OS -match "2016" -or - $OS -match "8") +$OS -match "2012" -or +$OS -match "2016" -or +$OS -match "8") +{ +Write-Host "OS Detected: $version" +} #Inveigh function Inveigh