mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 00:40:35 +08:00
make_list: check if file exists before the other operations
This commit is contained in:
@@ -63,7 +63,7 @@ all: px4_sitl_default
|
|||||||
space := $(subst ,, )
|
space := $(subst ,, )
|
||||||
|
|
||||||
define make_list
|
define make_list
|
||||||
$(shell cat .github/workflows/compile_${1}.yml | sed -E 's|[[:space:]]+(.*),|check_\1|g' | grep check_${2})
|
$(shell [ -f .github/workflows/compile_${1}.yml ] && cat .github/workflows/compile_${1}.yml | sed -E 's|[[:space:]]+(.*),|check_\1|g' | grep check_${2})
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Parsing
|
# Parsing
|
||||||
|
|||||||
Reference in New Issue
Block a user