Skip to content

Commit

Permalink
fix(base): cron dataset command shouldn't use quotes in args
Browse files Browse the repository at this point in the history
  • Loading branch information
b5 committed May 9, 2019
1 parent 6ff5d9c commit d0568dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions base/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ func datasetSaveCmd(streams ioes.IOStreams, job *cron.Job) *exec.Cmd {

if o, ok := job.Options.(*cron.DatasetOptions); ok {
if o.Title != "" {
args = append(args, fmt.Sprintf(`--title="%s"`, o.Title))
args = append(args, fmt.Sprintf(`--title=%s`, o.Title))
}
if o.Message != "" {
args = append(args, fmt.Sprintf(`--message="%s"`, o.Message))
args = append(args, fmt.Sprintf(`--message=%s`, o.Message))
}
if o.Recall != "" {
args = append(args, fmt.Sprintf(`--recall="%s"`, o.Recall))
args = append(args, fmt.Sprintf(`--recall=%s`, o.Recall))
}
if o.BodyPath != "" {
args = append(args, fmt.Sprintf(`--body="%s"`, o.BodyPath))
args = append(args, fmt.Sprintf(`--body=%s`, o.BodyPath))
}
if len(o.FilePaths) > 0 {
for _, path := range o.FilePaths {
args = append(args, fmt.Sprintf(`--file="%s"`, path))
args = append(args, fmt.Sprintf(`--file=%s`, path))
}
}

Expand Down

0 comments on commit d0568dc

Please sign in to comment.