aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Graeber <PowerShellMafia@users.noreply.github.com>2015-11-09 10:57:19 -0800
committerMatt Graeber <PowerShellMafia@users.noreply.github.com>2015-11-09 10:57:19 -0800
commit62bb142a68546e7696fe8032b0ddc4b9f6aae1c3 (patch)
tree5dac276da2e604c1887e18ab36773bfbfdf9665d
parentc03965c8f99c76b0ce63fb533b29a5f31dd162e4 (diff)
downloadPowerSploit-62bb142a68546e7696fe8032b0ddc4b9f6aae1c3.tar.gz
PowerSploit-62bb142a68546e7696fe8032b0ddc4b9f6aae1c3.zip
Excluding the Tests folder from being loaded as a module
-rw-r--r--PowerSploit.psm12
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 }