Skip to content

Commit

Permalink
fetch-cobolcheck-fixes: Added command for the /home/simadovakin/cobol…
Browse files Browse the repository at this point in the history
…check/ creation in the fetch-cobolcheck,ps1
  • Loading branch information
SimaDovakin committed Aug 13, 2024
1 parent 46e596c commit 0d2f859
Show file tree
Hide file tree
Showing 47 changed files with 141 additions and 47 deletions.
4 changes: 3 additions & 1 deletion bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/acronym/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/all-your-base/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/allergies/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/anagram/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/atbash-cipher/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/binary-search/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/binary/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/bob/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/circular-buffer/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/complex-numbers/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/darts/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/diamond/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/eliuds-eggs/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/grade-school/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/hamming/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/hello-world/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/high-scores/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/isogram/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/knapsack/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/leap/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/luhn/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/meetup/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/nucleotide-count/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/pangram/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/pascals-triangle/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/pig-latin/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/queen-attack/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/raindrops/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/reverse-string/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/robot-simulator/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/roman-numerals/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/scrabble-score/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/secret-handshake/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/sieve/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/space-age/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion exercises/practice/square-root/bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading

0 comments on commit 0d2f859

Please sign in to comment.