diff options
author | Matt Graeber <PowerShellMafia@users.noreply.github.com> | 2015-11-09 10:57:19 -0800 |
---|---|---|
committer | Matt Graeber <PowerShellMafia@users.noreply.github.com> | 2015-11-09 10:57:19 -0800 |
commit | 62bb142a68546e7696fe8032b0ddc4b9f6aae1c3 (patch) | |
tree | 5dac276da2e604c1887e18ab36773bfbfdf9665d /PowerSploit.psm1 | |
parent | c03965c8f99c76b0ce63fb533b29a5f31dd162e4 (diff) | |
download | PowerSploit-62bb142a68546e7696fe8032b0ddc4b9f6aae1c3.tar.gz PowerSploit-62bb142a68546e7696fe8032b0ddc4b9f6aae1c3.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 } |