graphics() fix logging nvidia-smi error (windows)
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user