mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 14:37:19 +02:00
Update the comment based header
This commit is contained in:
@ -5,15 +5,15 @@
|
||||
This script launches the File Explorer with the user's Git repositories folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-repos-folder
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
$TargetDir = resolve-path "$HOME/Repos"
|
||||
if (-not(test-path "$TargetDir" -pathType container)) {
|
||||
$TargetDir = Resolve-Path "$HOME/Repos"
|
||||
if (-not(Test-Path "$TargetDir" -pathType container)) {
|
||||
throw "Repos folder at 📂$TargetDir doesn't exist (yet)"
|
||||
}
|
||||
& "$PSScriptRoot/open-file-explorer.ps1" "$TargetDir"
|
||||
|
Reference in New Issue
Block a user