Skip to content

Commit

Permalink
Stop recreating commands on import.
Browse files Browse the repository at this point in the history
  • Loading branch information
BatmanAMA committed May 15, 2019
1 parent 6daf148 commit bedd830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/powerbox.psm1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Import-LocalizedData -BindingVariable Strings -FileName Strings -ErrorAction Ignore


# Include all function files.
Get-ChildItem $PSScriptRoot\Public\*.ps1, $PSScriptRoot\Private\*.ps1 | ForEach-Object {
# Include all function files. (not including $PSScriptRoot\Private\*.ps1 because those are used to build the module)
Get-ChildItem $PSScriptRoot\Public\*.ps1 | ForEach-Object {
. $PSItem.FullName
}

Expand Down

0 comments on commit bedd830

Please sign in to comment.