mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-15 14:38:17 +02:00
Updated some scripts
This commit is contained in:
parent
0024a140bd
commit
ed34d94da4
@ -24,8 +24,10 @@ try {
|
|||||||
Write-Host $text -noNewline
|
Write-Host $text -noNewline
|
||||||
Write-Host $URL -foregroundColor blue
|
Write-Host $URL -foregroundColor blue
|
||||||
}
|
}
|
||||||
Start-Process $URL
|
if ($IsLinux) {
|
||||||
|
} else {
|
||||||
|
Start-Process $URL
|
||||||
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
|
"⚠️ Error: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
try {
|
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"
|
& "$PSScriptRoot/open-URL.ps1" -text "1. See the official PowerShell documentation at: " "https://docs.microsoft.com/en-us/powershell"
|
||||||
Start-Sleep -milliseconds 50
|
Start-Sleep -milliseconds 50
|
||||||
@ -31,4 +31,4 @@ try {
|
|||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user