diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b95d863..fd660e1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,4 +4,8 @@ ### New Artifacts Properties -- Added the new 'redirect_stderr_to_stdout' property, an optional feature available exclusively for the command collector. When set to true, this property redirects all error messages (stderr) to standard output (stdout), ensuring they are written to the output file. \ No newline at end of file +- Added the new 'redirect_stderr_to_stdout' property, an optional feature available exclusively for the command collector. When set to true, this property redirects all error messages (stderr) to standard output (stdout), ensuring they are written to the output file. + +### Fixes + +- Resolves an issue where the hash and stat collectors failed to function correctly when the %user_home% variable was included in the path property ([#289](https://github.com/tclahr/uac/issues/289)). diff --git a/lib/parse_artifact.sh b/lib/parse_artifact.sh index 1dc3e162..fbc64dab 100644 --- a/lib/parse_artifact.sh +++ b/lib/parse_artifact.sh @@ -369,7 +369,7 @@ _parse_artifact() "${__pa_new_output_directory}" \ "${__pa_new_output_file}" elif [ "${__pa_collector}" = "hash" ]; then - _file_collector \ + _find_based_collector \ "hash" \ "${__pa_new_path}" \ "${__pa_is_file_list}" \ @@ -387,7 +387,7 @@ _parse_artifact() "${__pa_new_output_directory}" \ "${__pa_new_output_file}" elif [ "${__pa_collector}" = "stat" ]; then - _file_collector \ + _find_based_collector \ "stat" \ "${__pa_new_path}" \ "${__pa_is_file_list}" \