Updated cd-repo.ps1 and cd-repos.ps1

This commit is contained in:
Markus Fleschutz
2025-01-08 16:36:35 +01:00
parent cb845c54d3
commit 82156d8fe6
2 changed files with 24 additions and 18 deletions

View File

@ -31,8 +31,8 @@ try {
$path = "/Repositories"
} elseif (Test-Path "/repositories" -pathType Container) {
$path = "/repositories"
} elseif (Test-Path "~/source/repos/" -pathType Container) { # try Visual Studio default
$path = "~/source/repos/"
} elseif (Test-Path "~/source/repos" -pathType Container) { # try Visual Studio default
$path = "~/source/repos"
} else {
throw "No Git repositories folder in your home directory or in the root folder yet"
}