Just had a view on the script using my mobile and have two thoughts.
I was wondering, does it make sense to check for jq right at the start and just exit if it's missing instead of checking nd exiting in the middle of the script?
Also, could it be that the script is a bit inefficient when many many objects come Into the gane by constantly reading and rewriting large data files? Perhaps appending the new data would be much faster. Correct me if I m wrong because misread the script.
and now to something completely different - CCVS, CCAS, CCTE, CCCS, CCSM elite