make examples and tests runnable if dot sourced

This commit is contained in:
2023-08-14 22:44:09 +01:00
parent 598e0dd647
commit 09078d382b
3 changed files with 3 additions and 4 deletions

View File

@@ -63,4 +63,4 @@ function main {
finally { Disconnect-Voicemeeter }
}
if ($MyInvocation.InvocationName -ne '.') { main }
main