summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2022-07-14 10:14:22 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-07-14 10:16:37 +0200
commit61be85e19a48da7c6e8387cd46901b2852cb2e2c (patch)
treef81acff150d68e5de22dbb335d554ce7fc0d84e2
parentXen 4.16.2-pre-patchset-1 (diff)
downloadxen-upstream-patches-61be85e19a48da7c6e8387cd46901b2852cb2e2c.tar.gz
xen-upstream-patches-61be85e19a48da7c6e8387cd46901b2852cb2e2c.tar.bz2
xen-upstream-patches-61be85e19a48da7c6e8387cd46901b2852cb2e2c.zip
Correctly obtain the array length
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rwxr-xr-xcreate-patches2
1 files changed, 1 insertions, 1 deletions
diff --git a/create-patches b/create-patches
index 8e8c9fa..5a73699 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