mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-11 17:50:58 +00:00
deps: remove shlex (#1086)
This commit is contained in:
parent
8227afc82b
commit
a9af533ee6
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ import (
|
|||
"runtime"
|
||||
"strings"
|
||||
|
||||
"github.com/google/shlex"
|
||||
"github.com/kballard/go-shellquote"
|
||||
"github.com/spf13/pflag"
|
||||
|
||||
"github.com/mitchellh/go-homedir"
|
||||
|
@ -366,7 +366,7 @@ func (rc *RunContext) hostname() string {
|
|||
|
||||
optionsFlags := pflag.NewFlagSet("container_options", pflag.ContinueOnError)
|
||||
hostname := optionsFlags.StringP("hostname", "h", "", "")
|
||||
optionsArgs, err := shlex.Split(c.Options)
|
||||
optionsArgs, err := shellquote.Split(c.Options)
|
||||
if err != nil {
|
||||
log.Warnf("Cannot parse container options: %s", c.Options)
|
||||
return ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue