mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-17 16:11:22 +02:00
Improve executing other scripts
This commit is contained in:
@@ -16,7 +16,7 @@ try {
|
||||
|
||||
$Joke = $Table[$Index].Joke
|
||||
|
||||
& ./speak-english.ps1 "$Joke"
|
||||
& "$PSScriptRoot/speak-english.ps1" "$Joke"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user