diff options
author | Matt Graeber <PowerShellMafia@users.noreply.github.com> | 2015-11-09 10:52:23 -0800 |
---|---|---|
committer | Matt Graeber <PowerShellMafia@users.noreply.github.com> | 2015-11-09 10:52:23 -0800 |
commit | a0ab599810f8f05a9bf24850fb9104516b71abb7 (patch) | |
tree | 28c84267925971c5851dd8fc0e8dbd95de785386 /PowerSploit.psm1 | |
parent | aae81ddfe554abb75c9dd9f1bab5474cfe41c6e7 (diff) | |
download | PowerSploit-a0ab599810f8f05a9bf24850fb9104516b71abb7.tar.gz PowerSploit-a0ab599810f8f05a9bf24850fb9104516b71abb7.zip |
Excluding the Tests folder from being loaded as a module
Diffstat (limited to 'PowerSploit.psm1')
-rw-r--r-- | PowerSploit.psm1 | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |