diff options
author | Sam James <sam@gentoo.org> | 2022-04-22 18:54:27 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-22 18:54:36 +0100 |
commit | 183cd801507244a3c1f75b33914cd7f96c3c5834 (patch) | |
tree | 51e53921671f78e2b4cc92ada30d8ec8b58a67cc /sys-apps/kexec-tools | |
parent | media-libs/vulkan-loader: Stabilize 1.3.204 ppc, #839963 (diff) | |
download | gentoo-183cd801507244a3c1f75b33914cd7f96c3c5834.tar.gz gentoo-183cd801507244a3c1f75b33914cd7f96c3c5834.tar.bz2 gentoo-183cd801507244a3c1f75b33914cd7f96c3c5834.zip |
sys-apps/kexec-tools: fix shellcheck errors in comparison
Closes: https://bugs.gentoo.org/839177
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/kexec-tools')
-rw-r--r-- | sys-apps/kexec-tools/kexec-tools-2.0.22.ebuild | 4 | ||||
-rw-r--r-- | sys-apps/kexec-tools/kexec-tools-2.0.23.ebuild | 4 | ||||
-rw-r--r-- | sys-apps/kexec-tools/kexec-tools-9999.ebuild | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.22.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.22.ebuild index 897b98a24b69..c92e41d36170 100644 --- a/sys-apps/kexec-tools/kexec-tools-2.0.22.ebuild +++ b/sys-apps/kexec-tools/kexec-tools-2.0.22.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -114,7 +114,7 @@ pkg_postinst() { fi fi - if [[ ${n_root_args} > 1 && "${has_rootpart_set}" == "no" ]]; then + if [[ ${n_root_args} -gt 1 && "${has_rootpart_set}" == "no" ]]; then ewarn "WARNING: Multiple root arguments (root=) on kernel command-line detected!" ewarn "This was probably caused by a previous version of ${PN}." ewarn "Please reboot system once *without* kexec to avoid boot problems" diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.23.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.23.ebuild index 0879b84e6744..b69a3c09e13d 100644 --- a/sys-apps/kexec-tools/kexec-tools-2.0.23.ebuild +++ b/sys-apps/kexec-tools/kexec-tools-2.0.23.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -114,7 +114,7 @@ pkg_postinst() { fi fi - if [[ ${n_root_args} > 1 && "${has_rootpart_set}" == "no" ]]; then + if [[ ${n_root_args} -gt 1 && "${has_rootpart_set}" == "no" ]]; then ewarn "WARNING: Multiple root arguments (root=) on kernel command-line detected!" ewarn "This was probably caused by a previous version of ${PN}." ewarn "Please reboot system once *without* kexec to avoid boot problems" diff --git a/sys-apps/kexec-tools/kexec-tools-9999.ebuild b/sys-apps/kexec-tools/kexec-tools-9999.ebuild index 86b8d9fc9789..b69a3c09e13d 100644 --- a/sys-apps/kexec-tools/kexec-tools-9999.ebuild +++ b/sys-apps/kexec-tools/kexec-tools-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -114,7 +114,7 @@ pkg_postinst() { fi fi - if [[ ${n_root_args} > 1 && "${has_rootpart_set}" == "no" ]]; then + if [[ ${n_root_args} -gt 1 && "${has_rootpart_set}" == "no" ]]; then ewarn "WARNING: Multiple root arguments (root=) on kernel command-line detected!" ewarn "This was probably caused by a previous version of ${PN}." ewarn "Please reboot system once *without* kexec to avoid boot problems" |