From 62bb142a68546e7696fe8032b0ddc4b9f6aae1c3 Mon Sep 17 00:00:00 2001 From: Matt Graeber Date: Mon, 9 Nov 2015 10:57:19 -0800 Subject: Excluding the Tests folder from being loaded as a module --- PowerSploit.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerSploit.psm1 b/PowerSploit.psm1 index 550b8be..9bc0240 100644 --- a/PowerSploit.psm1 +++ b/PowerSploit.psm1 @@ -1 +1 @@ -Get-ChildItem $PSScriptRoot | ? { $_.PSIsContainer } | % { Import-Module $_.FullName -DisableNameChecking } +Get-ChildItem $PSScriptRoot | ? { $_.PSIsContainer -and ($_.Name -ne 'Tests') } | % { Import-Module $_.FullName -DisableNameChecking } -- cgit v1.2.3