...
 
Commits (6)
language: go
script:
- go test -v
before_install:
- export TZ=Europe/Berlin
......@@ -8,7 +8,7 @@ checkfmt:
@gofmt -d *.go
test:
go test
env TZ=Europe/Berlin go test
install: ${BIN}
install ${BIN} ${PREFIX}/bin
......
snaprd - backup utility
=======================
[![Build Status](https://travis-ci.com/sstark/snaprd.svg?branch=master)](https://travis-ci.com/sstark/snaprd)
Overview
--------
......
......@@ -175,7 +175,7 @@ func loadConfig() *Config {
log.Fatalln("no such schedule:", config.Schedule)
}
path := filepath.Join(config.repository, dataSubdir)
debugf("creating repository:", path)
debugf("creating repository: %s", path)
err := os.MkdirAll(path, 00755)
if err != nil {
log.Fatal(err)
......@@ -216,7 +216,7 @@ func loadConfig() *Config {
log.Println("error reading cached settings:", err)
log.Fatalf("this does not look like a %s repository\n", myName)
}
debugf("cached config: %s", config)
debugf("cached config: %v", config)
return config
}
case "help", "-h", "--help":
......
......@@ -129,7 +129,7 @@ func overwriteSymlink(target, linkname string) (err error) {
if ltarget == target {
return
}
debugf("symlink needs removal: %s != %s", target, ltarget)
debugf("symlink \"%s\" needs removal: %s != %s", linkname, target, ltarget)
err = os.Remove(linkname)
if err != nil {
// link can not be removed
......
......@@ -174,7 +174,7 @@ func subcmdRun() (ferr error) {
signal.Notify(sigc, syscall.SIGINT, syscall.SIGTERM, syscall.SIGUSR1)
select {
case sig := <-sigc:
debugf("Got signal", sig)
debugf("Got signal %s", sig)
switch sig {
case syscall.SIGINT, syscall.SIGTERM:
log.Println("-> Immediate exit")
......