mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
cli: Fix "build" when the basename contains a "."
Something like "moby-4.10.yml" did not work when invoked like "moby build moby-4.10". While at it, also allow .yaml as an extension. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
1602277ba7
commit
ae4b9ba897
@ -35,7 +35,7 @@ func build(args []string) {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
conf := remArgs[0]
|
conf := remArgs[0]
|
||||||
if filepath.Ext(conf) == "" {
|
if !(filepath.Ext(conf) == ".yml" || filepath.Ext(conf) == ".yaml") {
|
||||||
conf = conf + ".yml"
|
conf = conf + ".yml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user