fn: sgnd_framework_resolve_path
Purpose
Resolve a Framework-owned file or directory from the active development tree, falling back to the installed Framework when the active tree does not provide it.
Parameters
$1 Framework-relative path, without a leading slash. $2 Output variable receiving the resolved absolute path.
Behavior
- Tries SGND_FRAMEWORK_ROOT first.
- When the path is absent and SGND_FRAMEWORK_ROOT is not /, tries /.
- Does not change SGND_FRAMEWORK_ROOT.
Returns
- 0 when the path exists.
- 126 when the path cannot be resolved.
Usage
sgnd_framework_resolve_path "usr/local/lib/solidgroundux/common/sgnd-bootstrap.sh" resolved_path
