diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-07-14 10:14:22 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-07-14 10:14:22 +0200 |
commit | 4c7a0af84cdc3171c0392cfbb014a62eaefab03f (patch) | |
tree | 927bcb8d524c46dd48c21c8c177ef2808e47cc66 | |
parent | Xen 4.15.4-pre-patchset-0 (diff) | |
download | xen-upstream-patches-4c7a0af84cdc3171c0392cfbb014a62eaefab03f.tar.gz xen-upstream-patches-4c7a0af84cdc3171c0392cfbb014a62eaefab03f.tar.bz2 xen-upstream-patches-4c7a0af84cdc3171c0392cfbb014a62eaefab03f.zip |
Correctly obtain the array length
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rwxr-xr-x | create-patches | 2 |
1 files changed, 1 insertions, 1 deletions
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 |