1
0
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:
Sébastien Helleu
2024-09-08 09:26:04 +02:00
parent ec31f43d85
commit 244ba50841
+7 -5
View File
@@ -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."