View Single Post
01/20/21, 01:13 PM   #18
Keldor
 
Keldor's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 101
Thanks for yout feedback
I've found the bug in my script. The jq command returned the JSON string value with quotes, which means that I sent the value "6.2.5" instead of 6.2.5

The solution in my bash script was to change this line
Code:
COMPATIBLE_ID=$(echo "${COMPATIBLE_LIST}" | jq '.[0].id')
to
Code:
COMPATIBLE_ID=$(echo "${COMPATIBLE_LIST}" | jq --raw-output '.[0].id')

Last edited by Keldor : 01/21/21 at 03:34 AM.
  Reply With Quote