Correctly handle AUR providers during noconfirm

This commit is contained in:
morganamilo 2018-06-19 22:20:24 +01:00
parent 2e8d2b4d2c
commit f5a35d4d1d
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

View file

@ -595,8 +595,8 @@ func providerMenu(dep string, providers providers) *rpc.Pkg {
fmt.Print("\nEnter a number (default=1): ")
if config.NoConfirm {
fmt.Println()
break
fmt.Println("1")
return providers.Pkgs[0]
}
reader := bufio.NewReader(os.Stdin)