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 41CDF158011 for ; Thu, 14 Jul 2022 08:16:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D385E0C88; Thu, 14 Jul 2022 08:16:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A5A2E0C8A for ; Thu, 14 Jul 2022 08:16:33 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0DC2B340BCD for ; Thu, 14 Jul 2022 08:16:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 29EDA7F for ; Thu, 14 Jul 2022 08:16:30 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1657786462.4c7a0af84cdc3171c0392cfbb014a62eaefab03f.flow@gentoo> Subject: [gentoo-commits] proj/xen-upstream-patches:4.15 commit in: / X-VCS-Repository: proj/xen-upstream-patches X-VCS-Files: create-patches X-VCS-Directories: / X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 4c7a0af84cdc3171c0392cfbb014a62eaefab03f X-VCS-Branch: 4.15 Date: Thu, 14 Jul 2022 08:16:30 +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: caaeae5e-82e3-41bc-9ef3-99bd1ddb7c45 X-Archives-Hash: 1428f93408a29f27e6f312616818bf11 commit: 4c7a0af84cdc3171c0392cfbb014a62eaefab03f Author: Florian Schmaus gentoo org> AuthorDate: Thu Jul 14 08:14:22 2022 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Thu Jul 14 08:14:22 2022 +0000 URL: https://gitweb.gentoo.org/proj/xen-upstream-patches.git/commit/?id=4c7a0af8 Correctly obtain the array length Signed-off-by: Florian Schmaus gentoo.org> create-patches | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-patches b/create-patches index 399137a..bf66725 100755 --- a/create-patches +++ b/create-patches @@ -18,7 +18,7 @@ XEN_MAJOR_MINOR_VERSION="${XEN_VER_COMPONENTS[0]}.${XEN_VER_COMPONENTS[1]}" git -C "${XEN_REPO_DIR}" fetch origin readarray -d '' CURRENT_PATCHES < <(find . -maxdepth 1 -type f -name "*.patch" -print0) -if [[ ${CURRENT_PATCHES[@]} -gt 0 ]]; then +if [[ ${#CURRENT_PATCHES[@]} -gt 0 ]]; then git rm -f *.patch fi