migrate2rocky: fix listing of rpm info files

When the conversion completes, the script prints:

    You may review the following files:

However, there are no files displayed because the find pattern does not
match what `generate_rpm_info()` writes.  It looks for '*-rpms-*' while
the files are named '*-rpm-list-*' instead.

Fix the file pattern used.  While here, replace the use of `find` with a
simpler `printf` to achieve the same result.
This commit is contained in:
Todd Zullinger 2021-12-31 16:44:10 -05:00
parent d77da34ca0
commit c0d7132285

View File

@ -1185,7 +1185,7 @@ fi
if [[ $verify_all_rpms && $convert_to_rocky ]]; then
generate_rpm_info finish
infomsg $'You may review the following files:\n'
find "$convert_info_dir" -type f -name "$HOSTNAME-rpms-*.log"
printf '%s\n' "$convert_info_dir/$HOSTNAME-rpm-list-"*.log
fi
if [[ $update_efi && $convert_to_rocky ]]; then