From 852b2bd5d91b1d8d84574ebf062dd6f45a3f49ab Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Tue, 21 Sep 2021 17:56:14 +0200 Subject: [PATCH] Fixed: Missing enquote of path when creating build directory and soft link to node_modules --- Jakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jakefile b/Jakefile index ec5a7da93..6f1e59907 100644 --- a/Jakefile +++ b/Jakefile @@ -10,8 +10,8 @@ const utilsFile = ObjectiveJ.utils.file; var subprojects = ["Objective-J", "CommonJS", "Foundation", "AppKit", "Tools"]; task ("build", function() { - childProcess.execSync("mkdir -p $CAPP_BUILD", {stdio: 'inherit'}); - childProcess.execSync("ln -snf $PWD/node_modules $CAPP_BUILD/node_modules", {stdio: 'inherit'}); + childProcess.execSync(["mkdir", "-p", "$CAPP_BUILD"].map(utilsFile.enquote).join(" "), {stdio: 'inherit'}); + childProcess.execSync(['ln', '-snf', '"$PWD"/node_modules', '"$CAPP_BUILD"/node_modules'].join(" "), {stdio: 'inherit'}); }); ["build", "clean", "clobber"].forEach(function(aTaskName)