Fix make error when image file name has space

This commit is contained in:
Hui, Chunyang 2020-08-19 14:10:12 +00:00 committed by tate.thl
parent 85f5bc7ccc
commit dcad3ea1d9

@ -14,8 +14,8 @@ LIB_LINKS := libocclum-pal.so.$(major_ver) libocclum-pal.so
LIB_LINKS := $(addprefix $(instance_dir)/build/lib/, $(LIB_LINKS))
ifneq (, $(wildcard $(IMAGE)/. ))
IMAGE_DIRS := $(shell find $(IMAGE) -type d 2>/dev/null || true)
IMAGE_FILES := $(shell find $(IMAGE) -type f 2>/dev/null || true)
IMAGE_DIRS := $(shell find $(IMAGE) -type d 2>/dev/null | sed 's/ /\\ /g' || true)
IMAGE_FILES := $(shell find $(IMAGE) -type f 2>/dev/null | sed 's/ /\\ /g' || true)
endif
SHELL:=/bin/bash