Updated the cd-*.ps1 scripts

This commit is contained in:
Markus Fleschutz
2024-10-30 13:19:56 +01:00
parent 6419712ff2
commit bb01ef8cf5
25 changed files with 117 additions and 117 deletions

View File

@ -13,10 +13,10 @@
#>
try {
$Path = Resolve-Path "../../../.."
if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" }
Set-Location "$Path"
"📂$Path"
$path = Resolve-Path "../../../.."
if (-not(Test-Path "$path" -pathType container)) { throw "Folder at 📂$path doesn't exist (yet)" }
Set-Location "$path"
"📂$path"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"