Fixed missing retVal

This commit is contained in:
Jan Christian Grünhage 2017-04-25 23:43:44 +02:00
parent f14a2a729d
commit f040dc78c9
Signed by: jcgruenhage
GPG key ID: 321A67D9EE8BC3E1

View file

@ -22,9 +22,7 @@ func Run(data []byte) {
check(err)
for i := 0; i < len(hosts.Hosts); i++ {
fmt.Print("command=\"borg serve --restrict-to-path ")
fmt.Print(hosts.Folder)
fmt.Print("/")
fmt.Print(hosts.Hosts[i].Name)
fmt.Print(hosts.TotalPath(i))
if (hosts.Hosts[i].AppendOnly) {
fmt.Print(" --append only")
}
@ -34,8 +32,8 @@ func Run(data []byte) {
}
}
func (*HostList) TotalPath(index int) string {
func (hostList *HostList) TotalPath(index int) string {
return hostList.Folder + "/" + hostList.Hosts[index].Name
}
func check(e error) {
if e != nil {