From bfc125f7465430a9b9f12e2942c9698f0cb666d8 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Sun, 17 Jan 2021 21:24:40 -0500 Subject: Fixed extract script, wget tells me not to use -O --- extract.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'extract.sh') diff --git a/extract.sh b/extract.sh index 1fd58ca..72653dc 100755 --- a/extract.sh +++ b/extract.sh @@ -23,7 +23,7 @@ extract() { size="$1" things="$2" if [ ! -f "data/$db_file" ]; then - wget "https://www.playtak.com/games_anon.db" -O "data/$db_file" + curl "https://www.playtak.com/games_anon.db" -o "data/$db_file" fi echo Extracing games of size "$size"... sqlite3 "data/$db_file" "$(query $size $things)" | shuf > "data/playtak-$size" @@ -57,6 +57,10 @@ process() { echo "Done, available in data/$fn-$size.csv.gz" } +if [ ! -d data ]; then + mkdir data +fi + make pptdb for size in 5; do -- cgit v1.3.1