@ankitp5/capacitor-ssl-pinning
Version:
Check/pin SSL certificates
17 lines (14 loc) • 474 B
JavaScript
const fs = require('fs');
const path = require('path');
const cliPath = path.join(__dirname, '..', 'dist', 'cli', 'fingerprint.js');
try {
if (fs.existsSync(cliPath)) {
// 0o755 = rwxr-xr-x
fs.chmodSync(cliPath, 0o755);
console.log('Successfully set permissions for CLI tool');
}
} catch (error) {
// Don't fail the install if we can't set permissions
console.warn('Warning: Could not set CLI tool permissions:', error.message);
}