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
+1 -1
View File
@@ -63,4 +63,4 @@ function main {
finally { Disconnect-Voicemeeter }
}
if ($MyInvocation.InvocationName -ne '.') { main }
main
+1 -1
View File
@@ -68,4 +68,4 @@ function main {
}
}
if ($MyInvocation.InvocationName -ne '.') { main }
main
+1 -2
View File
@@ -73,5 +73,4 @@ function main() {
}
if ($MyInvocation.InvocationName -ne '.') { main }
main