Disabled load PowerShell profile when start the interpreter powershell.exe

Signed-off-by: Ivan Ryabchenko <rik.ggm@gmail.com>
This commit is contained in:
Ivan Ryabchenko 2015-09-02 19:34:36 +06:00 committed by Рябченко Иван Константинович
parent f8b0ca86c2
commit d4ce483ebc
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ func init() {
}
func execute(args []string) (string, error) {
args = append([]string{"-NoProfile"}, args...)
cmd := exec.Command(powershell, args...)
log.Debugf("[executing ==>] : %v %v", powershell, strings.Join(args, " "))
var stdout bytes.Buffer