Skip to content

Commit

Permalink
fix runner.conf file runArgs recognition bug
Browse files Browse the repository at this point in the history
  • Loading branch information
荣飞 徐 committed Apr 18, 2018
1 parent 3cb7450 commit b7532cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Here is a sample config file with the default settings:
tmp_path = "./tmp"
build_name = "runner-build"
build_log = "runner-build-errors.log"
run_args = []
valid_ext = [".go", ".tpl", ".tmpl", ".html"]
build_delay = 600
colors = 1
Expand Down
1 change: 1 addition & 0 deletions runner.conf.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
root = "."
watch_paths = []
exclude_paths = []
run_args = ["dev"]
tmp_path = "./tmp"
output_binary = ""
build_log = "runner-build-errors.log"
Expand Down
4 changes: 3 additions & 1 deletion runner/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ func initSettings(confFile, buildArgs *string, runArgs []string, buildPath, outp
if *buildArgs != "" {
settings.BuildArgs = *buildArgs
}
settings.RunArgs = []string(runArgs)
if len(runArgs) > 0 {
settings.RunArgs = runArgs
}
if *buildPath != "" {
settings.Root = *buildPath
}
Expand Down

0 comments on commit b7532cc

Please sign in to comment.