flatface.go: Fixed: Installing flatpak without '-y' option caused crash

This commit is contained in:
mollusk 2018-01-03 01:24:23 -07:00
parent 95ac849fba
commit fbc04729e8

View File

@ -58,7 +58,7 @@ func installPak() {
} else if programName == "q" {
os.Exit(0)
} else {
cmd := exec.Command("flatpak", "install", "flathub", programName)
cmd := exec.Command("flatpak", "install", "-y", "flathub", programName)
out, err := cmd.CombinedOutput()
if err != nil {
log.Fatalf("cmd.Run() failed with %s\n", err)