From 1ce7052d0e8baca4c677d2a214fd9025d0cda103 Mon Sep 17 00:00:00 2001 From: Jon Johnson Date: Thu, 18 Jan 2024 14:39:53 -0800 Subject: [PATCH] Fix get-source-dir Signed-off-by: Jon Johnson --- Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e93382855f4..f5c64de4c43 100644 --- a/Makefile +++ b/Makefile @@ -115,13 +115,9 @@ endef define get-source-dir $(info getting source dir for package $(3) with dir $(2)) $(1) := $(shell set -x; if [[ "." == "$(2)" ]]; then \ - if [[ -d "./$(3)" ]]; then \ - echo "--source-dir ./$(3)"; \ - fi \ + echo "--source-dir ./$(3)"; \ else \ - if [[ -d "$(2)" ]]; then \ - echo "--source-dir $(2)"; \ - fi \ + echo "--source-dir $(2)"; \ fi) endef