mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-09 23:17:21 +08:00
fix: fix issue with run script with no return (#9137)
This commit is contained in:
parent
d68a0b076b
commit
00a5cc654a
1 changed files with 1 additions and 1 deletions
|
@ -120,9 +120,9 @@ func (c *CommandHelper) run(name string, arg ...string) (string, error) {
|
|||
cmd.Stdout = file
|
||||
cmd.Stderr = file
|
||||
} else if len(c.scriptPath) != 0 {
|
||||
cmd = exec.Command("bash", c.scriptPath)
|
||||
cmd.Stdout = &stdout
|
||||
cmd.Stderr = &stderr
|
||||
cmd = exec.Command("bash", c.scriptPath)
|
||||
} else {
|
||||
cmd.Stdout = &stdout
|
||||
cmd.Stderr = &stderr
|
||||
|
|
Loading…
Add table
Reference in a new issue