This commit is contained in:
Jguer 2019-05-27 12:46:08 +01:00
parent b32a8ad582
commit 06da88778e
No known key found for this signature in database
GPG key ID: 09754DBECF21746F

View file

@ -662,7 +662,7 @@ func providerMenu(dep string, providers providers) *rpc.Pkg {
continue
}
if num < 1 || num > size {
if num < 1 || num >= size {
fmt.Fprintf(os.Stderr, "%s invalid value: %d is not between %d and %d\n", red("error:"), num, 1, size)
continue
}