diff --git a/bin/fetch-cobolcheck.ps1 b/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/bin/fetch-cobolcheck.ps1 +++ b/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/acronym/bin/fetch-cobolcheck.ps1 b/exercises/practice/acronym/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/acronym/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/acronym/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/all-your-base/bin/fetch-cobolcheck.ps1 b/exercises/practice/all-your-base/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/all-your-base/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/all-your-base/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/allergies/bin/fetch-cobolcheck.ps1 b/exercises/practice/allergies/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/allergies/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/allergies/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/anagram/bin/fetch-cobolcheck.ps1 b/exercises/practice/anagram/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/anagram/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/anagram/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/armstrong-numbers/bin/fetch-cobolcheck.ps1 b/exercises/practice/armstrong-numbers/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/armstrong-numbers/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/armstrong-numbers/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/atbash-cipher/bin/fetch-cobolcheck.ps1 b/exercises/practice/atbash-cipher/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/atbash-cipher/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/atbash-cipher/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/binary-search/bin/fetch-cobolcheck.ps1 b/exercises/practice/binary-search/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/binary-search/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/binary-search/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/binary/bin/fetch-cobolcheck.ps1 b/exercises/practice/binary/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/binary/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/binary/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/bob/bin/fetch-cobolcheck.ps1 b/exercises/practice/bob/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/bob/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/bob/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/circular-buffer/bin/fetch-cobolcheck.ps1 b/exercises/practice/circular-buffer/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/circular-buffer/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/circular-buffer/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/collatz-conjecture/bin/fetch-cobolcheck.ps1 b/exercises/practice/collatz-conjecture/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/collatz-conjecture/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/collatz-conjecture/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/complex-numbers/bin/fetch-cobolcheck.ps1 b/exercises/practice/complex-numbers/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/complex-numbers/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/complex-numbers/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/darts/bin/fetch-cobolcheck.ps1 b/exercises/practice/darts/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/darts/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/darts/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/diamond/bin/fetch-cobolcheck.ps1 b/exercises/practice/diamond/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/diamond/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/diamond/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/difference-of-squares/bin/fetch-cobolcheck.ps1 b/exercises/practice/difference-of-squares/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/difference-of-squares/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/difference-of-squares/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/eliuds-eggs/bin/fetch-cobolcheck.ps1 b/exercises/practice/eliuds-eggs/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/eliuds-eggs/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/eliuds-eggs/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/grade-school/bin/fetch-cobolcheck.ps1 b/exercises/practice/grade-school/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/grade-school/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/grade-school/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/hamming/bin/fetch-cobolcheck.ps1 b/exercises/practice/hamming/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/hamming/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/hamming/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/hello-world/bin/fetch-cobolcheck.ps1 b/exercises/practice/hello-world/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/hello-world/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/hello-world/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/high-scores/bin/fetch-cobolcheck.ps1 b/exercises/practice/high-scores/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/high-scores/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/high-scores/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/isogram/bin/fetch-cobolcheck.ps1 b/exercises/practice/isogram/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/isogram/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/isogram/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/knapsack/bin/fetch-cobolcheck.ps1 b/exercises/practice/knapsack/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/knapsack/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/knapsack/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/leap/bin/fetch-cobolcheck.ps1 b/exercises/practice/leap/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/leap/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/leap/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/luhn/bin/fetch-cobolcheck.ps1 b/exercises/practice/luhn/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/luhn/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/luhn/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/matching-brackets/bin/fetch-cobolcheck.ps1 b/exercises/practice/matching-brackets/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/matching-brackets/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/matching-brackets/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/meetup/bin/fetch-cobolcheck.ps1 b/exercises/practice/meetup/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/meetup/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/meetup/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/nucleotide-count/bin/fetch-cobolcheck.ps1 b/exercises/practice/nucleotide-count/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/nucleotide-count/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/nucleotide-count/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/pangram/bin/fetch-cobolcheck.ps1 b/exercises/practice/pangram/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/pangram/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/pangram/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/pascals-triangle/bin/fetch-cobolcheck.ps1 b/exercises/practice/pascals-triangle/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/pascals-triangle/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/pascals-triangle/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/pig-latin/bin/fetch-cobolcheck.ps1 b/exercises/practice/pig-latin/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/pig-latin/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/pig-latin/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/protein-translation/bin/fetch-cobolcheck.ps1 b/exercises/practice/protein-translation/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/protein-translation/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/protein-translation/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/queen-attack/bin/fetch-cobolcheck.ps1 b/exercises/practice/queen-attack/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/queen-attack/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/queen-attack/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/raindrops/bin/fetch-cobolcheck.ps1 b/exercises/practice/raindrops/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/raindrops/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/raindrops/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/reverse-string/bin/fetch-cobolcheck.ps1 b/exercises/practice/reverse-string/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/reverse-string/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/reverse-string/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/rna-transcription/bin/fetch-cobolcheck.ps1 b/exercises/practice/rna-transcription/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/rna-transcription/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/rna-transcription/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/robot-simulator/bin/fetch-cobolcheck.ps1 b/exercises/practice/robot-simulator/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/robot-simulator/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/robot-simulator/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/roman-numerals/bin/fetch-cobolcheck.ps1 b/exercises/practice/roman-numerals/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/roman-numerals/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/roman-numerals/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/rotational-cipher/bin/fetch-cobolcheck.ps1 b/exercises/practice/rotational-cipher/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/rotational-cipher/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/rotational-cipher/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/scrabble-score/bin/fetch-cobolcheck.ps1 b/exercises/practice/scrabble-score/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/scrabble-score/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/scrabble-score/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/secret-handshake/bin/fetch-cobolcheck.ps1 b/exercises/practice/secret-handshake/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/secret-handshake/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/secret-handshake/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/sieve/bin/fetch-cobolcheck.ps1 b/exercises/practice/sieve/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/sieve/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/sieve/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/space-age/bin/fetch-cobolcheck.ps1 b/exercises/practice/space-age/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/space-age/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/space-age/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/square-root/bin/fetch-cobolcheck.ps1 b/exercises/practice/square-root/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/square-root/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/square-root/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/triangle/bin/fetch-cobolcheck.ps1 b/exercises/practice/triangle/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/triangle/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/triangle/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/two-fer/bin/fetch-cobolcheck.ps1 b/exercises/practice/two-fer/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/two-fer/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/two-fer/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts diff --git a/exercises/practice/yacht/bin/fetch-cobolcheck.ps1 b/exercises/practice/yacht/bin/fetch-cobolcheck.ps1 index 9228452c..ed32d5ad 100644 --- a/exercises/practice/yacht/bin/fetch-cobolcheck.ps1 +++ b/exercises/practice/yacht/bin/fetch-cobolcheck.ps1 @@ -23,5 +23,7 @@ Function Get-DownloadUrl { } $downloadUrl = Get-DownloadUrl -$outputFile = Join-Path -Path "${HOME}" "cobolcheck" "cobolcheck.exe" +$outputDir = Join-Path -Path "${HOME}" "cobolcheck" +New-Item -Path "${outputDir}" -ItemType "directory" +$outputFile = Join-Path -Path "${outputDir}" "cobolcheck.exe" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts