From a343cf7806e56e00cb42ef66734efd558210f80c Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 30 Jun 2024 17:01:18 +0000 Subject: [PATCH] pkg-install-%-deps: Protect projects from shell with quotes Project names passed to the package manager can contain characters not well digested by the shell. Don't let it. Signed-off-by: Jan Lindemann --- make/projects-dir.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make/projects-dir.mk b/make/projects-dir.mk index 9ea39346..a70684c4 100644 --- a/make/projects-dir.mk +++ b/make/projects-dir.mk @@ -233,10 +233,10 @@ pkg-manager-refresh: $(PKG_MANAGER_SH) refresh $(DASH_Y) pkg-install-build-deps: - $(PKG_MANAGER_SH) install $(DASH_Y) $(BASE_PKGS) $(shell $(PROJECTS_PY) required-os-pkg --skip-excluded --flavours "build" $(TARGET_PROJECTS)) + $(PKG_MANAGER_SH) install $(DASH_Y) "$(BASE_PKGS) $(shell $(PROJECTS_PY) required-os-pkg --skip-excluded --flavours build $(TARGET_PROJECTS))" pkg-install-release-deps: - $(PKG_MANAGER_SH) install $(DASH_Y) $(BASE_PKGS) $(shell $(PROJECTS_PY) required-os-pkg --skip-excluded --flavours "build run release" $(TARGET_PROJECTS)) + $(PKG_MANAGER_SH) install $(DASH_Y) "$(BASE_PKGS) $(shell $(PROJECTS_PY) required-os-pkg --skip-excluded --flavours 'build run release' $(TARGET_PROJECTS))" pkg-exclude-built-today: touch $(EXCLUDES_FILE)