Fix verbose flag not working
All checks were successful
CI / CI (push) Successful in 1m25s

This commit is contained in:
SileNce5k 2025-06-21 15:40:16 +02:00
parent e68bb41960
commit c6ef14ee70
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -68,7 +68,7 @@ module.exports = {
fs.rmSync(downloadsDir, {force: true, recursive: true}); fs.rmSync(downloadsDir, {force: true, recursive: true});
}, },
executeCommand(command, commandArgs, {verbose = false}) { executeCommand(command, commandArgs, verbose=false) {
if (typeof command !== 'string' || !Array.isArray(commandArgs)) return { error: true }; if (typeof command !== 'string' || !Array.isArray(commandArgs)) return { error: true };
console.log("Executing:", command, commandArgs.join(" ")); console.log("Executing:", command, commandArgs.join(" "));
try { try {