mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-14 23:02:41 +02:00
Updated the manuals
This commit is contained in:
@ -6,7 +6,7 @@ This PowerShell script launches a new tab in the default Web browser with the gi
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./open-URL.ps1 [[-URL] <String>] [[-text] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/open-URL.ps1 [[-URL] <String>] [[-text] <String>] [<CommonParameters>]
|
||||
|
||||
-URL <String>
|
||||
Specifies the URL
|
||||
@ -75,8 +75,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))"
|
||||
@ -84,4 +86,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of open-URL.ps1 as of 08/15/2024 09:50:52)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of open-URL.ps1 as of 11/08/2024 12:34:53)*
|
||||
|
Reference in New Issue
Block a user