mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 13:33:31 +00:00
if not in interactive, check a script was passed
This commit is contained in:
@@ -54,6 +54,10 @@ function main {
|
||||
read-hostuntilempty -vmr $vmr
|
||||
return
|
||||
}
|
||||
if ($script.Count -eq 0) {
|
||||
'No script provided, exiting' | Write-Host
|
||||
return
|
||||
}
|
||||
$script | ForEach-Object {
|
||||
msgHandler -vmr $vmr -line $_
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user