~welt/murse

db85e43da90177a9ed7275eb7f2d6952407c1466 — welt 4 months ago 5b98d78 master
guiprep: adjust logging
2 files changed, 4 insertions(+), 3 deletions(-)

M download.go
M main.go
M download.go => download.go +2 -1
@@ 56,7 56,6 @@ func get(url string) (*[]byte, error) {
}

func downloadAndVerify(path string, checksum string, lchecksum *string) error {
	log.Println(path)
	ff := filepath.Join(opt.Directory, path)
	if _, err := os.Stat(ff); !os.IsNotExist(err) {
		b, err := os.ReadFile(ff)


@@ 88,6 87,8 @@ func downloadAndVerify(path string, checksum string, lchecksum *string) error {
		}
	}

	log.Println("Downloading: " + ff)

	err := os.MkdirAll(filepath.Dir(ff), 0777)
	if err != nil && !errors.Is(err, os.ErrExist) {
		return err

M main.go => main.go +2 -2
@@ 14,8 14,8 @@ var install bool
// The developer public key
var publicKey *rsa.PublicKey

type file struct {
	dir string
func init() {
	log.SetFlags(0)
}

func main() {