Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d309145290 |
@@ -27,6 +27,10 @@ import (
|
|||||||
var version = "dev"
|
var version = "dev"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
// The wizard and --check need the injected build version too (they resolve
|
||||||
|
// the release wheel matching this binary), so it is set before dispatch.
|
||||||
|
agent.Version = version
|
||||||
|
|
||||||
if len(os.Args) > 1 && os.Args[1] == "setup" {
|
if len(os.Args) > 1 && os.Args[1] == "setup" {
|
||||||
os.Exit(runSetup(os.Args[2:]))
|
os.Exit(runSetup(os.Args[2:]))
|
||||||
}
|
}
|
||||||
@@ -38,8 +42,6 @@ func main() {
|
|||||||
checkURL := fs.String("coordinator-url", "", "coordinator URL to probe in --check mode")
|
checkURL := fs.String("coordinator-url", "", "coordinator URL to probe in --check mode")
|
||||||
_ = fs.Parse(os.Args[1:])
|
_ = fs.Parse(os.Args[1:])
|
||||||
|
|
||||||
agent.Version = version
|
|
||||||
|
|
||||||
if *showVersion {
|
if *showVersion {
|
||||||
fmt.Println("worker-agent " + version)
|
fmt.Println("worker-agent " + version)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user