Update the framework version/build assignments in a shell source file.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_framework_set_version

Purpose

Update the framework version/build assignments in a shell source file.

Arguments

  • $1 — Source file path.
  • $2 — New version string.
  • $3 — New build string.

Side effects

Replaces matching SGND_VERSION and SGND_BUILD shell assignments using sed.

Returns

  • 0 on success; 1 for missing input, absent file or editing failure.

Usage

  sgnd_framework_set_version "$source_file" "2.2" "$build"