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
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,7 +10,7 @@ if ($IsLinux) {
} else {
$TargetDir = resolve-path "C:/"
}
if (-not(test-path "$TargetDir" -pathType leaf)) {
if (-not(test-path "$TargetDir" -pathType container)) {
write-warning "Sorry, directory 📂$TargetDir is missing"
exit 1
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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