mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-01 19:58:17 +02:00
Update cd-repos.ps1
This commit is contained in:
parent
c72e01facb
commit
f0450d22e0
@ -13,7 +13,11 @@
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
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)) {
|
if (-not(Test-Path "$Path" -pathType container)) {
|
||||||
throw "Folder for Git repositories at 📂$Path doesn't exist (yet)"
|
throw "Folder for Git repositories at 📂$Path doesn't exist (yet)"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user