You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
response=$(curl -A "commons-category-downloader/1 (https://github.com/aucuparia/commons-category-downloader)" --silent --data-urlencode "gcmtitle=Category:$category""$apiquery")
Please consider adding the --show-error (-S) and --fail (-f) options as well. Without -S, it's possible for curl to emit only the first part of the requested resource. -f makes curl exit non-zero in that case. The script doesn't check the exit code currently, but that could be added later, or people could run the script under bash -e; until then, adding -f would do no harm.
Thanks for writing this tool and publishing it!
The text was updated successfully, but these errors were encountered:
curl is invoked as follows:
commons-category-downloader/commons_category_downloader.sh
Line 19 in 7266f82
Please consider adding the --show-error (-S) and --fail (-f) options as well. Without -S, it's possible for curl to emit only the first part of the requested resource. -f makes curl exit non-zero in that case. The script doesn't check the exit code currently, but that could be added later, or people could run the script under
bash -e
; until then, adding -f would do no harm.Thanks for writing this tool and publishing it!
The text was updated successfully, but these errors were encountered: