Skip to content

Commit 4c248a4

Browse files
committed
ci: chmod should be used with Octal
1 parent 60be156 commit 4c248a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ console.log('Collected', DomainsList.size, 'unique domains from IAB Sellers.json
8181

8282
const IndexFilePath = `./sources/src/#generated-${crypto.randomUUID()}.ts`
8383
Fs.copyFileSync('./sources/src/index.ts', IndexFilePath)
84-
Fs.chmodSync(IndexFilePath, 700)
84+
Fs.chmodSync(IndexFilePath, 0o700)
8585
const Project = new TsMorph.Project({ tsConfigFilePath: './tsconfig.json' })
8686
const IndexFile = Project.getSourceFileOrThrow(IndexFilePath)
8787
const TargetedDomainsArray = IndexFile.getVariableDeclaration('TargetedDomains').getInitializerIfKindOrThrow(TsMorph.SyntaxKind.ArrayLiteralExpression)
@@ -104,7 +104,7 @@ for (const Line of Fs.readFileSync(HeaderLocation, 'utf-8').split('\n')) {
104104
}
105105
console.log('Generated header with userscript name and version')
106106
let AttachHeaderPath = `/tmp/${crypto.randomUUID()}`
107-
Fs.writeFileSync(AttachHeaderPath, ConvertedHeader, { encoding: 'utf-8', mode: 700 })
107+
Fs.writeFileSync(AttachHeaderPath, ConvertedHeader, { encoding: 'utf-8', mode: 0o700 })
108108
console.log('Written temporary header file to:', AttachHeaderPath)
109109
await ESBuild.build({
110110
entryPoints: [IndexFilePath],

0 commit comments

Comments
 (0)