flatface.go:checkRepo func now runs outside of loop with clearer messaging

This commit is contained in:
mollusk 2018-01-02 02:56:39 -07:00
parent b204c2f0bd
commit 72597bcd92

View File

@ -82,7 +82,7 @@ func updatePak() {
}
func checkRepo() {
print("\nChecking for repos...\n\n")
print("\nSyncing repos...\n\n")
cmd := exec.Command("flatpak", "remote-add", "--if-not-exists", "flathub", "https://flathub.org/repo/flathub.flatpakrepo")
out, err := cmd.CombinedOutput()
updatePak()
@ -123,9 +123,8 @@ func mainMenu() {
}
func main() {
for {
checkRepo()
for {
mainMenu()
}
}