screenFetch
screenFetch copied to clipboard
Extract function to parse values from config files
- Parses values from INI-style "key = value" lines
- Only the last set value for a key is output
This should reduce some code duplication, making it easier to add support for new environments and maintain support for existing ones.
Also fixes a bug where if the same key appeared multiple times in the config file, all the values would get concatenated together.