mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-15 07:12:44 +02:00
Improve the .Example section
This commit is contained in:
@ -18,9 +18,7 @@ try {
|
||||
} else {
|
||||
$Path = [Environment]::GetFolderPath('MyVideos')
|
||||
}
|
||||
if (-not(Test-Path "$Path" -pathType container)) {
|
||||
throw "Videos folder at 📂$Path doesn't exist (yet)"
|
||||
}
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Videos folder at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
exit 0 # success
|
||||
|
Reference in New Issue
Block a user