mokctl
mokctl copied to clipboard
Make JSONPath.sh use the MOK shell programming style.
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.