Fixed missing retVal
This commit is contained in:
parent
f14a2a729d
commit
f040dc78c9
|
@ -22,9 +22,7 @@ func Run(data []byte) {
|
||||||
check(err)
|
check(err)
|
||||||
for i := 0; i < len(hosts.Hosts); i++ {
|
for i := 0; i < len(hosts.Hosts); i++ {
|
||||||
fmt.Print("command=\"borg serve --restrict-to-path ")
|
fmt.Print("command=\"borg serve --restrict-to-path ")
|
||||||
fmt.Print(hosts.Folder)
|
fmt.Print(hosts.TotalPath(i))
|
||||||
fmt.Print("/")
|
|
||||||
fmt.Print(hosts.Hosts[i].Name)
|
|
||||||
if (hosts.Hosts[i].AppendOnly) {
|
if (hosts.Hosts[i].AppendOnly) {
|
||||||
fmt.Print(" --append only")
|
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) {
|
func check(e error) {
|
||||||
if e != nil {
|
if e != nil {
|
||||||
|
|
Loading…
Reference in a new issue