check
check copied to clipboard
Fix ambiguous curl option error for --compress
In as low as curl 7.58.0 (as far as know [possibly earlier]) --compress
is not a valid option and results in:
curl: option --compress: is ambiguous
Proposed change...
From (line 40):
echo -e "\033[${p};0f$(curl ${CURL_ARGS} $url --compress -s -o /dev/null -w \
To (line 40):
echo -e "\033[${p};0f$(curl ${CURL_ARGS} $url --compressed -s -o /dev/null -w \
See: https://curl.haxx.se/docs/manpage.html
If you need to support the --compress
arg, perhaps a version check on curl might suffice.
Tested on:
- Windows 10
- Ubuntu 18.04
Otherwise script works quite nicely. Thanks for your contribution.