jq leave me alone

This commit is contained in:
Osman Faruk Bayram 2025-05-16 20:33:40 +03:00
parent d938242a7d
commit ea89dd98f9

View file

@ -24,7 +24,7 @@ fetch_and_merge() {
-o "$resp_file"
echo -e "\n--- Page $((counter + 1)) (First 20 lines) ---"
jq "." "$resp_file" | head -n 20
head -n 20 <(jq . "$resp_file")
next_url=$(jq -r '.pages.next_url // empty' "$resp_file")
((counter++))
@ -70,4 +70,5 @@ zip -r "$tmp_dir/wanikani_data_$date.zip" "$tmp_dir/data"
echo "Data zipped to $tmp_dir/wanikani_data_$date.zip"
echo "$tmp_dir"
# rm -r "$tmp_dir"
# rm -r "$tmp_dir"