mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Fix "-X" 6l usage ("define string data")
It turns out "-X" is only for strings! :) Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ var (
|
|||||||
GITCOMMIT string
|
GITCOMMIT string
|
||||||
VERSION string
|
VERSION string
|
||||||
|
|
||||||
IAMSTATIC bool // whether or not Docker itself was compiled statically via ./hack/make.sh binary
|
IAMSTATIC string // whether or not Docker itself was compiled statically via ./hack/make.sh binary ("true" or not "true")
|
||||||
INITSHA1 string // sha1sum of separate static dockerinit, if Docker itself was compiled dynamically via ./hack/make.sh dynbinary
|
INITSHA1 string // sha1sum of separate static dockerinit, if Docker itself was compiled dynamically via ./hack/make.sh dynbinary
|
||||||
INITPATH string // custom location to search for a valid dockerinit binary (available for packagers as a last resort escape hatch)
|
INITPATH string // custom location to search for a valid dockerinit binary (available for packagers as a last resort escape hatch)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ func isValidDockerInitPath(target string, selfPath string) bool { // target and
|
|||||||
if target == "" {
|
if target == "" {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if dockerversion.IAMSTATIC {
|
if dockerversion.IAMSTATIC == "true" {
|
||||||
if selfPath == "" {
|
if selfPath == "" {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user