fix: error out for invalid env versions
This commit is contained in:
parent
b2436174b0
commit
1132b09b5b
@ -127,6 +127,9 @@ func Get(name string) Recipe {
|
||||
version := ""
|
||||
if strings.Contains(name, ":") {
|
||||
split := strings.Split(name, ":")
|
||||
if len(split) > 2 {
|
||||
log.Fatalf("version seems invalid: %s", name)
|
||||
}
|
||||
name = split[0]
|
||||
version = split[1]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user