get the server from the now properly stored server

This commit is contained in:
Aaron Bieber 2020-01-29 17:12:41 -07:00
parent 72dd894d63
commit 722cf107f5

View File

@ -41,11 +41,12 @@ func main() {
flag.Parse()
if server == "" {
server, _ = store.get("config", "server")
server, err = store.get("config", "server")
if server == "" {
log.Fatalln("please specify a server")
}
} else {
store.set("config", "server", server)
}