Validate config
validate_config¶
Validate that a config file contains only shell-importable key=value pairs. Blank lines and comment lines are ignored. Any line not in the form 'key=value' (alphanumeric characters only) causes a failure.
Arguments¶
- $1 (string): Path to the config file to validate
Exit codes¶
- 0: All non-blank, non-comment lines are valid key=value pairs
- 1: One or more invalid lines found