aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-12-07 12:11:16 +0100
committerLoïc Hoguin <[email protected]>2018-12-07 12:11:16 +0100
commite1d2a826433a523a40c2e6f1e8eeabe96892b3a2 (patch)
treebd75368088d149a6d6bf0a8ed7c0377a0e3c01d2 /core
parentb729a8495a39888026ff6da1ec4bde1662e1907e (diff)
downloaderlang.mk-e1d2a826433a523a40c2e6f1e8eeabe96892b3a2.tar.gz
erlang.mk-e1d2a826433a523a40c2e6f1e8eeabe96892b3a2.tar.bz2
erlang.mk-e1d2a826433a523a40c2e6f1e8eeabe96892b3a2.zip
core_find: Ignore files with spaces to avoid issues
Diffstat (limited to 'core')
-rw-r--r--core/core.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/core.mk b/core/core.mk
index a3e68e5..661527e 100644
--- a/core/core.mk
+++ b/core/core.mk
@@ -177,7 +177,8 @@ core_http_get = curl -Lf$(if $(filter-out 0,$(V)),,s)o $(call core_native_path,$
core_eq = $(and $(findstring $(1),$(2)),$(findstring $(2),$(1)))
-core_find = $(if $(wildcard $1),$(shell find $(1:%/=%) -type f -name $(subst *,\*,$2)))
+# We skip files that contain spaces because they end up causing issues.
+core_find = $(if $(wildcard $1),$(shell find $(1:%/=%) -type f -name $(subst *,\*,$2) | grep -v " "))
core_lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$(1)))))))))))))))))))))))))))