diff options
-rwxr-xr-x | server/bin/oglivecli | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bin/oglivecli b/server/bin/oglivecli index 54c8d156..d1e02a6a 100755 --- a/server/bin/oglivecli +++ b/server/bin/oglivecli @@ -37,7 +37,7 @@ EOT # Check if ogLive is defined into JSON file. n=$(jq ".oglive | length" $INFOFILE) for ((i=0; i<n; i++)); do - [ "$DATA" == "$(jq ".oglive[$i]" $INFOFILE)" ] && INDEX=$i + [ "$(jq ".check=$DATA | .check==.oglive[$i]" $INFOFILE)" ] && INDEX=$i done # Check if it needs to insert data. if [ -z "$INDEX" ]; then |