mokctl icon indicating copy to clipboard operation
mokctl copied to clipboard

Make JSONPath.sh use the MOK shell programming style.

Open mclarkson opened this issue 5 years ago • 0 comments

Describe the bug JSONPath.sh has been imported to remove nasty sed lines from the mokctl code, but JSONPath.sh pollutes the global namespace.

To Reproduce Look at the top of JSONPath.sh. It pollutes the global namespace.

Expected behavior Its global variables should be in the MOK shell style - in an associative array.

Screenshots N/A

Desktop (please complete the following information): N/A

Smartphone (please complete the following information): N/A

Additional context All globals should be put in an associative array, _JP maybe. It should initialise itself.

mclarkson avatar May 27 '20 19:05 mclarkson