mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
core: fix test of Debian patches when there are no patches
This commit is contained in:
@@ -110,11 +110,13 @@ test_patches ()
|
||||
PATCHES_OK=0
|
||||
PATCHES_ERROR=0
|
||||
for file in "${ROOT_DIR}"/tools/debian/patches/*.patch; do
|
||||
echo "=== Testing patch ${file} ==="
|
||||
if git apply --check "${file}"; then
|
||||
PATCHES_OK=$((PATCHES_OK+1))
|
||||
else
|
||||
PATCHES_ERROR=$((PATCHES_ERROR+1))
|
||||
if [ -f "${file}" ]; then
|
||||
echo "=== Testing patch ${file} ==="
|
||||
if git apply --check "${file}"; then
|
||||
PATCHES_OK=$((PATCHES_OK+1))
|
||||
else
|
||||
PATCHES_ERROR=$((PATCHES_ERROR+1))
|
||||
fi
|
||||
fi
|
||||
done
|
||||
echo "Patches: ${PATCHES_OK} OK, ${PATCHES_ERROR} in error."
|
||||
|
||||
Reference in New Issue
Block a user