From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DFD2815808D for ; Fri, 22 Apr 2022 17:54:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11387E087A; Fri, 22 Apr 2022 17:54:46 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7F6CAE087A for ; Fri, 22 Apr 2022 17:54:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 847CA341827 for ; Fri, 22 Apr 2022 17:54:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2022C29 for ; Fri, 22 Apr 2022 17:54:43 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1650650076.183cd801507244a3c1f75b33914cd7f96c3c5834.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/kexec-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/kexec-tools/kexec-tools-2.0.22.ebuild sys-apps/kexec-tools/kexec-tools-2.0.23.ebuild sys-apps/kexec-tools/kexec-tools-9999.ebuild X-VCS-Directories: sys-apps/kexec-tools/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 183cd801507244a3c1f75b33914cd7f96c3c5834 X-VCS-Branch: master Date: Fri, 22 Apr 2022 17:54:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1afdba72-0cde-4f9f-b905-9154169e99be X-Archives-Hash: fa3ce764c52daa758418e0fb580a38be commit: 183cd801507244a3c1f75b33914cd7f96c3c5834 Author: Sam James gentoo org> AuthorDate: Fri Apr 22 17:54:27 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Apr 22 17:54:36 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=183cd801 sys-apps/kexec-tools: fix shellcheck errors in comparison Closes: https://bugs.gentoo.org/839177 Signed-off-by: Sam James gentoo.org> sys-apps/kexec-tools/kexec-tools-2.0.22.ebuild | 4 ++-- sys-apps/kexec-tools/kexec-tools-2.0.23.ebuild | 4 ++-- 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"