Skip to content

Commit

Permalink
Merge pull request #106 from xushiwei/t
Browse files Browse the repository at this point in the history
gsh: exec {}, cmd, args...
  • Loading branch information
xushiwei authored Feb 19, 2024
2 parents 55e88da + 415a0d9 commit 6646797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gsh/classfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (p *App) Gop_Exec(name string, args ...string) error {
// Exec executes a shell command with specified environs.
func (p *App) Exec__0(env map[string]string, name string, args ...string) error {
var cmdEnv []string
if env != nil {
if len(env) > 0 {
cmdEnv = Setenv__0(Sys.Environ(), env)
}
return p.execWith(cmdEnv, name, args...)
Expand Down

0 comments on commit 6646797

Please sign in to comment.