mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-31 03:06:23 +02:00
Update cd-repos.ps1
This commit is contained in:
parent
c72e01facb
commit
f0450d22e0
@ -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)"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user