dmenupatches - commit d4a1488
fix: build orderd4a1488f4fef849279c400e0a69dfd1e907e431fLukeJ<luke.jones.2567@gmail.com>2026-09-28T20:21:51+01:00diff --git a/build.sh b/build.sh
index e20abe3..ee7bd3b 100644
--- a/build.sh
+++ b/build.sh
@@ -19,16 +19,20 @@ printf '%s\n' "Applying patches from: $SCRIPT_DIR"
found=0
-for patch in "$SCRIPT_DIR"/*.diff "$SCRIPT_DIR"/*.patch; do
+for patch in "$SCRIPT_DIR"/*.diff; do
[ -f "$patch" ] || continue
found=1
printf 'Applying %s...\n' "$(basename "$patch")"
- patch -p1 < "$patch"
+
+ if ! patch -p1 < "$patch"; then
+ printf 'Error: failed to apply %s\n' "$(basename "$patch")" >&2
+ exit 1
+ fi
done
if [ "$found" -eq 0 ]; then
- printf 'Error: no .diff or .patch files found in %s\n' "$SCRIPT_DIR" >&2
+ printf 'Error: no .diff files found in %s\n' "$SCRIPT_DIR" >&2
exit 1
fi