Update cd-repos.ps1

This commit is contained in:
Markus Fleschutz 2022-11-10 12:50:18 +01:00
parent 0a5cb95651
commit dae6f7ab3a

View File

@ -14,11 +14,11 @@
try { try {
if (Test-Path "$HOME/Repos" -pathType Container) { if (Test-Path "$HOME/Repos" -pathType Container) {
$Path = Resolve-Path "$HOME/Repos" $Path = Resolve-Path "$HOME/Repos" # short form
} elseif (Test-Path "$HOME/Repositories" -pathType Container) { } elseif (Test-Path "$HOME/Repositories" -pathType Container) {
$Path = Resolve-Path "$HOME/Repositories" $Path = Resolve-Path "$HOME/Repositories" # long form
} elseif (Test-Path "$HOME/source/repos" -pathType Container) { } elseif (Test-Path "$HOME/source/repos" -pathType Container) {
$Path = Resolve-Path "$HOME/source/repos" $Path = Resolve-Path "$HOME/source/repos" # default by Visual Studio
} else { } else {
$Path = "$HOME/Repos" $Path = "$HOME/Repos"
throw "Folder for Git repositories at 📂$Path doesn't exist (yet)" throw "Folder for Git repositories at 📂$Path doesn't exist (yet)"