mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-15 18:39:02 +01:00
Update cd-dropbox.ps1
This commit is contained in:
parent
89194a0286
commit
f9ef1c93c7
@ -13,11 +13,11 @@
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = resolve-path "$HOME/Dropbox"
|
||||
if (-not(test-path "$Path" -pathType container)) {
|
||||
$Path = Resolve-Path "$HOME/Dropbox"
|
||||
if (-not(Test-Path "$Path" -pathType container)) {
|
||||
throw "Dropbox folder at 📂$Path doesn't exist (yet)"
|
||||
}
|
||||
set-location "$Path"
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user