Load the selected configuration file into shell variables.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_cfg_load

Purpose

Load the selected configuration file into shell variables.

Arguments

  • $1 — Optional file path (defaults to SGND_CFG_FILE).

Side effects

Sets shell variables for valid entries.

Returns

0 after loading, including when the file is absent.

Usage

  sgnd_cfg_load "$SGND_CFG_FILE"