Updated some scripts

This commit is contained in:
Markus Fleschutz 2024-08-26 15:36:14 +02:00
parent 0024a140bd
commit ed34d94da4
2 changed files with 6 additions and 4 deletions

View File

@ -24,8 +24,10 @@ try {
Write-Host $text -noNewline
Write-Host $URL -foregroundColor blue
}
Start-Process $URL
if ($IsLinux) {
} else {
Start-Process $URL
}
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"

View File

@ -13,7 +13,7 @@
try {
""
& "$PSScriptRoot/write-typewriter.ps1" "OK - DON'T PANIC - HELP IS ON THE WAY..." 150
& "$PSScriptRoot/write-typewriter.ps1" "DON'T PANIC - HELP IS ON THE WAY..." 170
""
& "$PSScriptRoot/open-URL.ps1" -text "1. See the official PowerShell documentation at: " "https://docs.microsoft.com/en-us/powershell"
Start-Sleep -milliseconds 50
@ -31,4 +31,4 @@ try {
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}
}