diff options
author | James Mills <prologic@shortcircuit.net.au> | 2020-03-10 08:21:45 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 08:21:45 +1000 |
commit | ff4eb9c8cbb0a614f6573209cd5b097662d0c490 (patch) | |
tree | cada16e001aa4e88ff0b886dac7bae50a5363ed5 /packaging | |
parent | c4e491f7b85602464bab6152375fde360a9c791a (diff) |
Fix cosmetic error checking for CentOS 8 version in install-required-packages (#8339)
* Fix cosmetic error checking for CentOS 8 version in install-required-packages
* Fix CentOS 8 regex to count for lone 8
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/installer/install-required-packages.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/installer/install-required-packages.sh b/packaging/installer/install-required-packages.sh index 6d2905d760..f0c85bfef4 100755 --- a/packaging/installer/install-required-packages.sh +++ b/packaging/installer/install-required-packages.sh @@ -1323,7 +1323,7 @@ validate_tree_centos() { fi fi - if [ "$version" -eq 8 ]; then + if [[ "${version}" =~ ^8(\..*)?$ ]]; then echo >&2 " > Checking for config-manager ..." if ! run yum ${sudo} config-manager; then if prompt "config-manager not found, shall I install it?"; then |