~poptart/x

6e4a2922051fe2ebe521077e06d75f776fe00add — poptart 22 days ago 797147c + 040d0d7 master
Merge branch 'master' of git.sr.ht:~poptart/x
1 files changed, 6 insertions(+), 6 deletions(-)

M cmd/unad/main.go
M cmd/unad/main.go => cmd/unad/main.go +6 -6
@@ 38,11 38,7 @@ func main() {
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error opening cache: %s\n", err.Error())
	}
	f, err := os.OpenFile(*outFlag, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755)
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error opening config generated file: %s\n", err.Error())
		os.Exit(2)
	}

	err = ioutil.WriteFile(*cacheFlag, []byte(m), 0644)
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error creating cache: %s\n", err.Error())


@@ 66,7 62,11 @@ func main() {
		fmt.Fprintf(os.Stderr, "Content error: %s\n", err.Error())
		os.Exit(1)
	}

	f, err := os.OpenFile(*outFlag, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755)
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error opening config generated file: %s\n", err.Error())
		os.Exit(2)
	}
	fmt.Fprintf(f, "server:\n")
	regex := *regexp.MustCompile(RegexZone)
	scanner := bufio.NewScanner(strings.NewReader(string(body)))