mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 03:40:16 +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:
		| @@ -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" | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user