make examples and tests runnable if dot sourced

This commit is contained in:
onyx-and-iris 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

View File

@ -68,4 +68,4 @@ function main {
}
}
if ($MyInvocation.InvocationName -ne '.') { main }
main

View File

@ -73,5 +73,4 @@ function main() {
}
if ($MyInvocation.InvocationName -ne '.') { main }
main