mirror of
https://github.com/Jguer/yay.git
synced 2025-11-30 00:04:05 -05:00
fix(passer): fix slice copying for passer
This commit is contained in:
parent
7d080df6ac
commit
81b5feb68a
@ -14,7 +14,7 @@ type CmdBuilder struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *CmdBuilder) BuildGitCmd(dir string, extraArgs ...string) *exec.Cmd {
|
func (c *CmdBuilder) BuildGitCmd(dir string, extraArgs ...string) *exec.Cmd {
|
||||||
args := make([]string, 0, len(c.GitFlags)+len(extraArgs))
|
args := make([]string, len(c.GitFlags), len(c.GitFlags)+len(extraArgs))
|
||||||
copy(args, c.GitFlags)
|
copy(args, c.GitFlags)
|
||||||
|
|
||||||
if dir != "" {
|
if dir != "" {
|
||||||
@ -29,7 +29,7 @@ func (c *CmdBuilder) BuildGitCmd(dir string, extraArgs ...string) *exec.Cmd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *CmdBuilder) BuildMakepkgCmd(dir string, extraArgs ...string) *exec.Cmd {
|
func (c *CmdBuilder) BuildMakepkgCmd(dir string, extraArgs ...string) *exec.Cmd {
|
||||||
args := make([]string, 0, len(c.MakepkgFlags)+len(extraArgs))
|
args := make([]string, len(c.MakepkgFlags), len(c.MakepkgFlags)+len(extraArgs))
|
||||||
copy(args, c.MakepkgFlags)
|
copy(args, c.MakepkgFlags)
|
||||||
|
|
||||||
if c.MakepkgConfPath != "" {
|
if c.MakepkgConfPath != "" {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user