From dcad3ea1d900f23bad130c77e59b6f24e722b9eb Mon Sep 17 00:00:00 2001 From: "Hui, Chunyang" Date: Wed, 19 Aug 2020 14:10:12 +0000 Subject: [PATCH] Fix make error when image file name has space --- tools/occlum_build.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/occlum_build.mk b/tools/occlum_build.mk index f202ae60..acd7c699 100644 --- a/tools/occlum_build.mk +++ b/tools/occlum_build.mk @@ -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