flatface.go:checkRepo func now runs outside of loop with clearer messaging
This commit is contained in:
parent
b204c2f0bd
commit
72597bcd92
@ -82,7 +82,7 @@ func updatePak() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func checkRepo() {
|
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")
|
cmd := exec.Command("flatpak", "remote-add", "--if-not-exists", "flathub", "https://flathub.org/repo/flathub.flatpakrepo")
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
updatePak()
|
updatePak()
|
||||||
@ -123,9 +123,8 @@ func mainMenu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
checkRepo()
|
||||||
for {
|
for {
|
||||||
checkRepo()
|
|
||||||
mainMenu()
|
mainMenu()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user