From 28baa5b080adefcfcccec2cd82fff4918bd4a4c3 Mon Sep 17 00:00:00 2001 From: "Zheng, Qi" Date: Wed, 3 Nov 2021 13:30:39 +0800 Subject: [PATCH] Make sure replacing ':' with '\:' in Makefile targets Signed-off-by: Zheng, Qi --- tools/occlum_build.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/occlum_build.mk b/tools/occlum_build.mk index 94cace4a..27278e1f 100644 --- a/tools/occlum_build.mk +++ b/tools/occlum_build.mk @@ -23,13 +23,13 @@ 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 | sed 's/ /\\ /g' || true) - IMAGE_FILES := $(shell find $(IMAGE) -type f 2>/dev/null | sed 's/ /\\ /g' || true) + IMAGE_DIRS := $(shell find $(IMAGE) -type d 2>/dev/null | sed 's/ /\\ /g' | sed 's/:/\\:/g' || true) + IMAGE_FILES := $(shell find $(IMAGE) -type f 2>/dev/null | sed 's/ /\\ /g' | sed 's/:/\\:/g' || true) endif ifneq (, $(wildcard $(INITFS)/. )) - INITFS_DIRS := $(shell find $(INITFS) -type d 2>/dev/null | sed 's/ /\\ /g' || true) - INITFS_FILES := $(shell find $(INITFS) -type f 2>/dev/null | sed 's/ /\\ /g' || true) + INITFS_DIRS := $(shell find $(INITFS) -type d 2>/dev/null | sed 's/ /\\ /g' | sed 's/:/\\:/g' || true) + INITFS_FILES := $(shell find $(INITFS) -type f 2>/dev/null | sed 's/ /\\ /g' | sed 's/:/\\:/g' || true) endif SHELL:=/bin/bash