aboutsummaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
Diffstat (limited to 'rules')
-rw-r--r--rules/patch.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/patch.mk b/rules/patch.mk
index 7c6951d..830a548 100644
--- a/rules/patch.mk
+++ b/rules/patch.mk
@@ -27,7 +27,7 @@ ifeq (,$(__patch_mk))
build-depends += gnu-patch
patchdir = $(CURDIR)/patches
-patches = $(shell [ -d "$(patchdir)" ] && cd "$(patchdir)" && grep -v '^\#' series || ls -1 | sort)
+patches = $(shell [ -d "$(patchdir)" ] && cd "$(patchdir)" && grep -v '^\#' series 2>/dev/null || ls -1 | sort)
# Try different path levels:
applied-%-stamp: $(patchdir)/% unpack-stamp