Closed trezqers closed 2 years ago
migrating from centos 7 I have an issue with -r option, there is an error with validating condition in centos2ol.sh line 564.
List of packages looks ok, I thing problematic is second condition, which is checking count_elems > 0 is wrong, so changed it like this:
- if [[ -n "${list_of_centos_rpms[*]}" ]] && [[ "${list_of_centos_rpms[*]}" -ne 0 ]]; then + if [[ -n "${list_of_centos_rpms[*]}" ]] && [[ "${#list_of_centos_rpms[@]}" -ne 0 ]]; then
so from "${list_of_centos_rpms[*]}" which i one arg list of values, to "${#list_of_centos_rpms[@]}" which is count of them
"${list_of_centos_rpms[*]}"
"${#list_of_centos_rpms[@]}"
and it works as expectd :)
Simple enough fix, but I assume they need a pull request and a signed OCA...
migrating from centos 7 I have an issue with -r option, there is an error with validating condition in centos2ol.sh line 564.
List of packages looks ok, I thing problematic is second condition, which is checking count_elems > 0 is wrong, so changed it like this:
so from
"${list_of_centos_rpms[*]}"
which i one arg list of values, to"${#list_of_centos_rpms[@]}"
which is count of themand it works as expectd :)