Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mbektas committed Aug 22, 2023
1 parent 407f8ab commit f748f2b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/buildutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,15 @@ if (cli.flags.updateBinarySignList) {
const envInstallerDir = path.resolve('env_installer', 'jlab_server');
const envBinDir = path.join(envInstallerDir, 'bin');

const needsSigning = (filePath) => {
const needsSigning = filePath => {
// conly consider bin directory, and .so, .dylib files in other directories
if (filePath.startsWith(envBinDir) ||
(filePath.endsWith('.so') || filePath.endsWith('.dylib'))) {
// check for binary content
return isBinary(null, fs.readFileSync(filePath));
if (
filePath.startsWith(envBinDir) ||
filePath.endsWith('.so') ||
filePath.endsWith('.dylib')
) {
// check for binary content
return isBinary(null, fs.readFileSync(filePath));
}

return false;
Expand All @@ -117,7 +120,7 @@ if (cli.flags.updateBinarySignList) {
});

return results;
}
};

const binaries = findBinariesInDirectory(envInstallerDir);
const fileContent = binaries.join('\n');
Expand Down

0 comments on commit f748f2b

Please sign in to comment.