Update system.js

This commit is contained in:
Namhyeon Go 2022-05-30 19:50:07 +09:00 committed by GitHub
parent 27c3c6fad9
commit 9ad7d904e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ exports.isElevated = function() {
};
exports.getOS = function() {
return WMI.execQuery("SELECT * FROM Win32_OperatingSystem").fetch().get("Caption").rtrim();
return WMI.execQuery("SELECT * FROM Win32_OperatingSystem").fetch().get("Caption").trim();
};
exports.getDCName = function() {
@ -71,7 +71,7 @@ exports.getUUID = function() {
exports.getCurrentWorkingDirectory = function() {
try {
cwd = SHELL.exec("cd", "cwd.txt").rtrim();
cwd = SHELL.exec("cd", "cwd.txt").trim();
return cwd;
} catch (e) {}
};