diff --git a/Makefile b/Makefile index e6ddb1633..beae68005 100644 --- a/Makefile +++ b/Makefile @@ -158,7 +158,9 @@ ifneq ($(EXPORTDIR),) ifneq ($(CONFIG_BUILD_KERNEL),y) ifneq ($(BUILTIN_REGISTRY),) for f in "${BUILTIN_REGISTRY}"$(DELIM)*.bdat "${BUILTIN_REGISTRY}"$(DELIM)*.pdat ; do \ - [ -f "$${f}" ] && cp -f "$${f}" "${EXPORTDIR}"$(DELIM)registry ; \ + if [ -f "$${f}" ]; then \ + cp -f "$${f}" "${EXPORTDIR}"$(DELIM)registry ; \ + fi \ done endif endif