Enclose the app path in quotes, so that the `open` command doesn't split it if it contains spaces (#678)

* 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 <eloy.de.enige@gmail.com>
This commit is contained in:
Sergi Mansilla 2020-12-28 13:40:11 +01:00 коммит произвёл GitHub
Родитель 8c0f9ef070
Коммит b192f9c7c5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -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'

Просмотреть файл

@ -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);