mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Use execSync
when changing permissions via the find
command
This will prevent the arguments supplied to `-exec` from being escaped incorrectly by `spawnSync`.
This commit is contained in:
parent
d7f7f3527e
commit
62d5af52ae
@ -1,6 +1,7 @@
|
||||
'use strict'
|
||||
|
||||
const assert = require('assert')
|
||||
const childProcess = require('child_process')
|
||||
const copySync = require('./copy-sync')
|
||||
const electronPackager = require('electron-packager')
|
||||
const fs = require('fs-extra')
|
||||
@ -96,7 +97,7 @@ function setAtomHelperVersion (packagedAppPath) {
|
||||
|
||||
function chmodNodeFiles (packagedAppPath) {
|
||||
console.log(`Changing permissions for node files in ${packagedAppPath}`)
|
||||
spawnSync('find', [packagedAppPath, '-type', 'f', '-name', '*.node', '-exec chmod a-x {};'])
|
||||
childProcess.execSync(`find "${packagedAppPath}" -type f -name *.node -exec chmod a-x {} \\;`)
|
||||
}
|
||||
|
||||
function buildAsarUnpackGlobExpression () {
|
||||
|
Loading…
Reference in New Issue
Block a user