From 4c7a0af84cdc3171c0392cfbb014a62eaefab03f Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 14 Jul 2022 10:14:22 +0200 Subject: Correctly obtain the array length Signed-off-by: Florian Schmaus --- 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 -- cgit v1.2.3-65-gdbad