fix for old curl
This commit is contained in:
@@ -40,7 +40,7 @@ done
|
|||||||
output=""
|
output=""
|
||||||
for url in "${urls[@]}"; do
|
for url in "${urls[@]}"; do
|
||||||
#echo "curl -s ${options[@]} $url"
|
#echo "curl -s ${options[@]} $url"
|
||||||
output=$(eval "curl -s ${options[@]@Q} '$url' --fail-with-body")
|
output=$(eval "curl -s ${options[@]@Q} '$url' --fail")
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
|
|
||||||
if cat "$temp_file" | jq -e 'has("error")' > /dev/null 2>&1; then
|
if cat "$temp_file" | jq -e 'has("error")' > /dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user