Updated list-clipboard.ps1

This commit is contained in:
Markus Fleschutz 2024-05-13 15:36:49 +02:00
parent af3c58a541
commit d4c5c03433

View File

@ -13,7 +13,8 @@
#>
try {
"📋 $(get-clipboard)"
[string]$text = (Get-Clipboard)
Write-Output "📋 `$text `"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"