mirror of
https://github.com/openshift/image-registry.git
synced 2026-02-05 09:45:55 +01:00
use env var for config arg value
This commit is contained in:
@@ -18,8 +18,6 @@ func main() {
|
||||
configurationPath := ""
|
||||
if flag.NArg() > 0 {
|
||||
configurationPath = flag.Arg(0)
|
||||
} else if os.Getenv("REGISTRY_CONFIGURATION_PATH") != "" {
|
||||
configurationPath = os.Getenv("REGISTRY_CONFIGURATION_PATH")
|
||||
}
|
||||
if configurationPath == "" {
|
||||
fmt.Println("configuration path unspecified")
|
||||
|
||||
Reference in New Issue
Block a user