Updated license check

This commit is contained in:
gbuomprisco
2025-01-21 11:44:37 +07:00
parent 95bc455372
commit f7eb9bedfa

View File

@@ -7,8 +7,13 @@ async function checkLicense() {
try { try {
gitUser = gitUser =
execSync('git config user.username').toString().trim() || execSync('git config user.username').toString().trim();
execSync('git config user.name').toString().trim();
if (!gitUser) {
gitUser = execSync('git config user.name').toString().trim();
}
gitEmail = execSync('git config user.email').toString().trim();
} catch (error) { } catch (error) {
console.warn(`Error checking git user: ${error.message}`); console.warn(`Error checking git user: ${error.message}`);
} }