Skip to content

Commit

Permalink
Fix fetch-cobolcheck user-only download
Browse files Browse the repository at this point in the history
`test.sh` checks if `bin/cobolcheck` exists. If not, the result of
`bin/fetch-cobolcheck` must be `bin/cobolcheck`, not
`/usr/local/bin/cobolcheck`.
  • Loading branch information
klimkin committed Aug 5, 2024
1 parent f2095c6 commit b37f363
Show file tree
Hide file tree
Showing 47 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/acronym/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/all-your-base/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/allergies/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/anagram/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/armstrong-numbers/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/atbash-cipher/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/binary-search/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/binary/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/bob/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/circular-buffer/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/collatz-conjecture/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/complex-numbers/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/darts/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/diamond/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/eliuds-eggs/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/grade-school/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/hamming/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/hello-world/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/high-scores/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/isogram/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/knapsack/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/leap/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/luhn/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/matching-brackets/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/meetup/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/nucleotide-count/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/pangram/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/pascals-triangle/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/pig-latin/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/queen-attack/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/raindrops/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/reverse-string/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/rna-transcription/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/robot-simulator/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/roman-numerals/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/rotational-cipher/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/scrabble-score/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/secret-handshake/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/sieve/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/space-age/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/square-root/bin/fetch-cobolcheck
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_download_url() {
}

main() {
output_path="/usr/local/bin/cobolcheck${ext}"
output_path="cobolcheck${ext}"
download_url="$(get_download_url)"
curl "${curlopts[@]}" --output "${output_path}" "${download_url}"
chmod +x "${output_path}"
Expand Down
Loading

0 comments on commit b37f363

Please sign in to comment.