Browse Source

Fix json_get for 6 parameters when >9 domains

pull/485/head
Tim Kimber 6 years ago
parent
commit
25ab41135d
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      getssl

+ 1
- 1
getssl View File

@ -1192,7 +1192,7 @@ json_get() { # get values from json
if [[ -n "$6" ]]; then
full=$(json_awk "$1")
section=$(echo "$full" | grep "\"$2\"" | grep "\"$3\"" | grep "\"$4\"" | awk -F"," '{print $2}')
echo "$full" | grep "^..${5}\",$section" | awk '{print $2}' | tr -d '"'
echo "$full" | grep "^..${5}\",$section\]" | awk '{print $2}' | tr -d '"'
elif [[ -n "$5" ]]; then
full=$(json_awk "$1")
section=$(echo "$full" | grep "\"$2\"" | grep "\"$3\"" | grep "\"$4\"" | awk -F"," '{print $2}')


Loading…
Cancel
Save