Sorry, as I said I wasn't trying to be annoying... which is why I specifically asked whether there was some command referenced elsewhere in the script which itself used jq since I saw no step myself.
Before I posted, for the record, I did paste the script into ChatGPT, as I did again, with the question "What does thus script use jq for?":
In the script you posted, the jq command-line tool is
checked for existence (using check_command jq) but
is not actually used anywhere else in the script.
Where it's mentioned:
bash
CopyEdit
<span><span>check_command jq<br></span></span>
And in the comment:
bash
CopyEdit
<span><span><span># It uses the jq command-line tool to parse</span></span><span><br></span></span>
That comment is
incomplete and misleading—it suggests jq is used for parsing (likely JSON), but there is no actual jqusage in the script body.
Conclusion:
- jq is not used in this version of the script.
- It's likely that the script was originally intended to use jq—perhaps to parse JSON output from a qm or pveshcommand—but that logic was either removed or never implemented.
- The presence of check_command jq is currently unnecessary and can safely be removed unless future modifications will use jq.
Let me know if you’d like help modifying or improving the script!