This commit is contained in:
Markus Fleschutz 2021-04-21 19:58:27 +02:00
parent 450869a593
commit 855251d922
16 changed files with 16 additions and 16 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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