fn: sgnd_header_get_field
Purpose
Read a named field from a source-header section.
Arguments
$1— Source path.$2— Section name (for example Metadata).$3— Field name (for example Version).$4— Destination variable name.
Side effects
Writes the field value into the specified variable; empties it if missing.
Returns
- 0 when found; 1 when absent.
Usage
sgnd_header_get_field "$source_file" Metadata Version current_version
