Harden install-apt Node bootstrap and polish pr review CLI (v1.2.1) #6
1 changed files with 2 additions and 1 deletions
|
|
@ -79,7 +79,8 @@ function runScenario({ candInitial, candAfterUpdate, candAfterNodesource, preexi
|
|||
|
||||
const read = (p) => (fs.existsSync(p) ? fs.readFileSync(p, 'utf8') : null);
|
||||
const mode = (p) => (fs.existsSync(p) ? fs.statSync(p).mode & 0o777 : null);
|
||||
return {
|
||||
const result = {
|
||||
res,
|
||||
aptEtc,
|
||||
nodesourceList: read(path.join(aptEtc, 'sources.list.d', 'nodesource.list')),
|
||||
nodesourceListMode: mode(path.join(aptEtc, 'sources.list.d', 'nodesource.list')),
|
||||
|
|
|
|||
Loading…
Reference in a new issue