From b192f9c7c574b996a175442f3614a28d5b027284 Mon Sep 17 00:00:00 2001 From: Sergi Mansilla Date: Mon, 28 Dec 2020 13:40:11 +0100 Subject: [PATCH] Enclose the app path in quotes, so that the `open` command doesn't split it if it contains spaces (#678) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Enclose the app path in quotes, so that the `open` command doesn't split it if it contains spaces * [ado] Remove no longer needed homebrew fix Co-authored-by: Eloy DurĂ¡n --- .ado/templates/apple-node-setup.yml | 3 --- local-cli/runMacOS/runMacOS.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.ado/templates/apple-node-setup.yml b/.ado/templates/apple-node-setup.yml index b892f2c586..9d3f4ecb1c 100644 --- a/.ado/templates/apple-node-setup.yml +++ b/.ado/templates/apple-node-setup.yml @@ -2,9 +2,6 @@ # Task Group: Brew install node version # steps: - - script: 'brew uninstall openssl@1.0.2t && rm -rf /usr/local/etc/openssl && rm -rf /usr/local/etc/openssl@1.1' - displayName: Fix Homebrew - - script: 'brew bundle' displayName: 'brew bundle' diff --git a/local-cli/runMacOS/runMacOS.js b/local-cli/runMacOS/runMacOS.js index 88504f6bed..95b72de73c 100644 --- a/local-cli/runMacOS/runMacOS.js +++ b/local-cli/runMacOS/runMacOS.js @@ -87,7 +87,7 @@ async function run(xcodeProject, scheme, args) { ); child_process.exec( - 'open -b ' + bundleID + ' -a ' + appPath, + 'open -b ' + bundleID + ' -a ' + '"' + appPath + '"', (error, stdout, stderr) => { if (error) { logger.error('Failed to launch the app', stderr);