graphics() fix logging nvidia-smi error (windows)

This commit is contained in:
Sebastian Hildebrandt
2026-01-03 10:21:04 +01:00
parent 7f739ca6f7
commit 3562c8775b
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -462,7 +462,7 @@ function graphics(callback) {
options.stdio = ['pipe', 'pipe', 'ignore'];
}
try {
const sanitized = util.sanitizeShellString(cmd) + (_linux ? ' 2>/dev/null' : '');
const sanitized = util.sanitizeShellString(cmd) + (_linux ? ' 2>/dev/null' : '') + (_windows ? ' 2> nul' : '');
const res = execSync(sanitized, options).toString();
return res;
} catch {