yusufozturk/poshserver — pull request #3 by beefarino (2014-12-15 15:56:24+00:00)
Title: fix issue with module path search running after proper path is located

As it stands now, if you're using the PoshServer module from a location that isn't the last entry in $env:psmodulepath, the search logic fails incorrectly. The issue is that the path test loop continues to run after the module path is found. Adding the break on a successful path test fixes the issue.