Update powershell.js

This commit is contained in:
Namhyeon Go 2023-03-10 11:28:02 +09:00 committed by GitHub
parent 8b1722cedb
commit 3008ea8813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ function PowershellInterface() {
this.exec = function(args) {
if (this.execType != "ps1") {
console.warn("The execType is not set 'ps1'. Will be forward this request to the default shell.");
console.warn("The execType is not set 'ps1'. Will be forward it to the default shell.");
SHELL.exec(this.target);
return;
}
@ -113,7 +113,7 @@ function PowershellInterface() {
this.runAs = function() {
if (this.execType != "ps1") {
console.warn("The execType is not set 'ps1'. Will be forward this request to the default shell.");
console.warn("The execType is not set 'ps1'. Will be forward it to the default shell.");
return execCommand("Start-Process cmd \"/q /c " + SHELL.addslashes(SHELL.build(this.target)) + "\" -Verb RunAs");
} else {
return execCommand("Start-Process cmd \"/q /c " + SHELL.addslashes(SHELL.build(cmd)) + "\" -Verb RunAs");
@ -138,7 +138,7 @@ exports.execScript = execScript;
exports.execCommand = execCommand;
exports.runAs = runAs;
exports.VERSIONINFO = "Powershell (powershell.js) version 0.1.2";
exports.VERSIONINFO = "Powershell Interface (powershell.js) version 0.1.2";
exports.AUTHOR = "abuse@catswords.net";
exports.global = global;
exports.require = global.require;