mirror of
https://github.com/vernette/ipregion.git
synced 2026-07-10 00:08:41 +00:00
Return empty string for invalid JSON values.
This commit is contained in:
parent
d64f267420
commit
a2c78a92d8
1 changed files with 2 additions and 2 deletions
|
|
@ -647,13 +647,13 @@ process_json() {
|
|||
fi
|
||||
|
||||
if [[ -z "$json" ]]; then
|
||||
echo "$STATUS_NA"
|
||||
echo ""
|
||||
return
|
||||
fi
|
||||
|
||||
if ! is_valid_json "$json"; then
|
||||
log "$LOG_WARN" "Invalid JSON input for filter: $jq_filter"
|
||||
echo "$STATUS_NA"
|
||||
echo ""
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue