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