diff options
-rwxr-xr-x | create-patches | 2 |
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 |