diff --git a/Scripts/check-time.ps1 b/Scripts/write-time.ps1 similarity index 51% rename from Scripts/check-time.ps1 rename to Scripts/write-time.ps1 index 117e2815..77d762ab 100755 --- a/Scripts/check-time.ps1 +++ b/Scripts/write-time.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Determines the current time + Writes the current time .DESCRIPTION - This PowerShell script determines and speaks the current time by text-to-speech (TTS). + This PowerShell script determines and writes the current time. .EXAMPLE - PS> ./check-time + PS> ./write-time .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -12,12 +12,11 @@ #> try { - [system.threading.thread]::currentThread.currentCulture=[system.globalization.cultureInfo]"en-US" + [system.threading.thread]::currentThread.currentCulture = [system.globalization.cultureInfo]"en-US" $CurrentTime = $((Get-Date).ToShortTimeString()) - - & "$PSScriptRoot/give-reply.ps1" "It's $CurrentTime" + "🕒$CurrentTime" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" exit 1 -} +} \ No newline at end of file