oracle / centos2ol

Script and documentation to switch CentOS/Rocky Linux to Oracle Linux

Home Page:https://linux.oracle.com/switch/centos/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

centos2ol.sh: line 559: syntax error: invalid arithmetic operator

markmurphy242 opened this issue · comments

Near the end of script execution:

centos2ol.sh: line 559: [[: kernel-4.18.0-305.10.2.el8_4 kernel-core-4.18.0-305.10.2.el8_4 kernel-modules-4.18.0-305.10.2.el8_4: syntax error: invalid arithmetic operator (error token is ".18.0-305.10.2.el8_4 kernel-core-4.18.0-305.10.2.el8_4 kernel-modules-4.18.0-305.10.2.el8_4")
The following non-Oracle RPMs are installed on the system:
	kernel-4.18.0-305.10.2.el8_4|CentOS|CentOS BuildSystem <http://bugs.centos.org>
	gpg-pubkey-8483c65d-5ccc5b19|(none)|CentOS (CentOS Official Signing Key) <security@centos.org>
	kernel-core-4.18.0-305.10.2.el8_4|CentOS|CentOS BuildSystem <http://bugs.centos.org>
	kernel-modules-4.18.0-305.10.2.el8_4|CentOS|CentOS BuildSystem <http://bugs.centos.org>
This may be expected of your environment and does not necessarily indicate a problem.

Red Hat Enterprise Linux release 8.4 (Ootpa)
Oracle Linux Server release 8.4

Thanks, will take a look.

This is the same as #144, which also includes the fix.