This is going to fail when the patch is removed, and no patches remain, since it will try and apply the literal string ".../*.patch", and that won't exist, and will fail.  (Verify this: `echo *.patch` somewhere without a matching file.)