#!/bin/bash
body=""
files=(./jsonx/*.jsonx)
count=${#files[@]}
index=0

for file in "${files[@]}"; do
    echo index is $index file is $file
    index=$((index + 1))
    body+=$(cat $file)
    if ((index != count)); then
        body="${body},"
    fi
done

echo count is $count

echo "[
    $body
]

" > plugins.json

cat plugins.json


