Improve executing other scripts

This commit is contained in:
Markus Fleschutz
2021-04-07 14:45:10 +02:00
parent 6cf41e4221
commit 381c3b850f
6 changed files with 15 additions and 15 deletions

View File

@ -8,7 +8,7 @@
try {
[system.threading.thread]::currentthread.currentculture=[system.globalization.cultureinfo]"en-US"
& ./speak-english.ps1 "Today is $((Get-Date).ToShortDateString())"
& "$PSScriptRoot/speak-english.ps1" "Today is $((Get-Date).ToShortDateString())"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"