Update cd-dropbox.ps1

This commit is contained in:
Markus Fleschutz 2022-02-25 13:27:40 +01:00
parent 89194a0286
commit f9ef1c93c7

View File

@ -13,11 +13,11 @@
#> #>
try { try {
$Path = resolve-path "$HOME/Dropbox" $Path = Resolve-Path "$HOME/Dropbox"
if (-not(test-path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) {
throw "Dropbox folder at 📂$Path doesn't exist (yet)" throw "Dropbox folder at 📂$Path doesn't exist (yet)"
} }
set-location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
} catch { } catch {