This commit is contained in:
Markus Fleschutz
2021-04-21 20:03:25 +02:00
parent 855251d922
commit 1a9fdfb337
16 changed files with 16 additions and 16 deletions

View File

@ -6,7 +6,7 @@
#>
$TargetDir = resolve-path "$HOME/Desktop"
if (-not(test-path "$TargetDir" -pathType leaf)) {
if (-not(test-path "$TargetDir" -pathType container)) {
write-warning "Sorry, directory 📂$TargetDir is missing"
exit 1
}