From a0ab599810f8f05a9bf24850fb9104516b71abb7 Mon Sep 17 00:00:00 2001 From: Matt Graeber Date: Mon, 9 Nov 2015 10:52:23 -0800 Subject: Excluding the Tests folder from being loaded as a module --- PowerSploit.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PowerSploit.psm1') 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