Skip to content

Commit

Permalink
Use curl instead of wget
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Apr 10, 2023
1 parent 59d5692 commit d2bed96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mt_word_counter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
int main() {
// download Jane Austin "Pride and Prejudice"
// ------------------------------------------
if (system("wget https://www.gutenberg.org/files/1342/1342-0.txt") != 0) {
if (system("curl https://www.gutenberg.org/files/1342/1342-0.txt -o 1342-0.txt") != 0) {
std::cout << "Error: could not retrieve test file https://www.gutenberg.org/files/1342/1342-0.txt\n";
return 1;
}
Expand Down

0 comments on commit d2bed96

Please sign in to comment.