mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Update the cd-* scripts
This commit is contained in:
@ -19,7 +19,7 @@ function Get-CurrentUserSID { [CmdletBinding()] param()
|
||||
|
||||
$TargetDir = 'C:\$Recycle.Bin\' + "$(Get-CurrentUserSID)"
|
||||
if (-not(test-path "$TargetDir" -pathType container)) {
|
||||
write-warning "Sorry, there is no folder 📂$TargetDir (yet)"
|
||||
write-warning "Sorry, the user's recycle bin folder at 📂$TargetDir does not exist (yet)"
|
||||
exit 1
|
||||
}
|
||||
set-location "$TargetDir"
|
||||
|
Reference in New Issue
Block a user