mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-30 01:28:51 +01:00
Update cd-dropbox.ps1
This commit is contained in:
parent
89194a0286
commit
f9ef1c93c7
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user