Fix license checker
This commit is contained in:
@@ -10,7 +10,7 @@ async function checkLicense() {
|
|||||||
execSync('git config user.username').toString().trim() ||
|
execSync('git config user.username').toString().trim() ||
|
||||||
execSync('git config user.name').toString().trim();
|
execSync('git config user.name').toString().trim();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return;
|
console.warn(`Error checking git user: ${error.message}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gitUser && !gitEmail) {
|
if (!gitUser && !gitEmail) {
|
||||||
@@ -105,7 +105,10 @@ function checkVisibility() {
|
|||||||
async function main() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
await checkVisibility();
|
await checkVisibility();
|
||||||
await checkLicense();
|
await checkLicense().catch((error) => {
|
||||||
|
console.error(`Check failed with error: ${error.message}`);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Check failed with error: ${error.message}`);
|
console.error(`Check failed with error: ${error.message}`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user