Update cd-repos.ps1

This commit is contained in:
Markus Fleschutz 2022-11-06 22:44:07 +01:00
parent c72e01facb
commit f0450d22e0

View File

@ -13,7 +13,11 @@
#>
try {
$Path = Resolve-Path "$HOME/source/repos"
if ($IsLinux) {
$Path = Resolve-Path "$HOME/Repos"
} else {
$Path = Resolve-Path "$HOME/source/repos"
}
if (-not(Test-Path "$Path" -pathType container)) {
throw "Folder for Git repositories at 📂$Path doesn't exist (yet)"
}