Update open-facebook.ps1

This commit is contained in:
Markus Fleschutz
2021-10-27 08:33:46 +02:00
committed by GitHub
parent edec1485f3
commit c7aaf94f5a

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Opens Facebook's website Opens Facebook's website
.DESCRIPTION .DESCRIPTION
This script starts the Web browser and opens Facebook's website. This script starts the Web browser with Facebook's website.
.EXAMPLE .EXAMPLE
PS> ./open-facebook PS> ./open-facebook
.NOTES .NOTES
@ -11,10 +11,5 @@
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
#> #>
try { & "$PSScriptRoot/open-browser.ps1" "https://www.facebook.com"
& "$PSScriptRoot/open-browser.ps1" "https://www.facebook.com" exit 0 # success
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
exit 1
}