Write a recursive function in bash that gets variable values and recursively replaces subsequent variables in the values
I need to retrieve all file paths that are derived from the software_artifact_location variable.
These paths may appear in both Jinja2 templates and YAML files.
The script should start by knowing only the value of software_artifact_location and then recursively resolve other variables that reference it, either directly or indirectly, across different files.
The final output should list all resolved file paths. So finally, we want to know which files are used under the /artifacts by a project.
We need to skip the comment rows.