v0.2.0 #3
@@ -1,7 +1,7 @@
|
||||
package batch
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"git.kor-elf.net/kor-elf-shield/go-nftables-client/contract"
|
||||
"git.kor-elf.net/kor-elf-shield/go-nftables-client/internal/pkg"
|
||||
@@ -18,6 +18,6 @@ func NewCommand(file *pkg.File) contract.CommandRun {
|
||||
}
|
||||
|
||||
func (c *commandRun) Run(args ...string) error {
|
||||
_, err := c.file.Write([]byte(fmt.Sprintf("%s\n", args)))
|
||||
_, err := c.file.Write([]byte(strings.Join(args, " ")))
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user