aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/mk/local.sys.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/local.sys.mk b/share/mk/local.sys.mk
index 47c8034fb4af..0fb9b1acaaaf 100644
--- a/share/mk/local.sys.mk
+++ b/share/mk/local.sys.mk
@@ -13,7 +13,7 @@ MAKE_PRINT_VAR_ON_ERROR += \
.MAKE.MODE
.endif
-_ERROR_CMD_EXEC= ${sed -n '/^CMD/s,^CMD ,,p' ${.ERROR_META_FILE}:L:sh}
+_ERROR_CMD_EXEC= ${sed -n '/^CMD/s,^CMD \(.*\),\1;,p' ${.ERROR_META_FILE}:L:sh}
_ERROR_CMD= ${!empty(.ERROR_META_FILE):?${_ERROR_CMD_EXEC}:.PHONY}
MAKE_PRINT_VAR_ON_ERROR+= \
_ERROR_CMD \