aboutsummaryrefslogtreecommitdiff
path: root/config/workdir.go
diff options
context:
space:
mode:
authorJulien Dessaux2020-02-12 21:04:55 +0100
committerJulien Dessaux2020-02-12 21:04:55 +0100
commit211adff0b060023fe0c91e1950d80d3a36d61868 (patch)
tree2fea7d5d39a6dff4f0276018b9bf23f2debc412c /config/workdir.go
parentAdded tests for job package (diff)
downloadbareos-zabbix-check-211adff0b060023fe0c91e1950d80d3a36d61868.tar.gz
bareos-zabbix-check-211adff0b060023fe0c91e1950d80d3a36d61868.tar.bz2
bareos-zabbix-check-211adff0b060023fe0c91e1950d80d3a36d61868.zip
Fixed code that used the wrong path manipulation module
Diffstat (limited to 'config/workdir.go')
-rw-r--r--config/workdir.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/workdir.go b/config/workdir.go
index 283fdc5..208df1a 100644
--- a/config/workdir.go
+++ b/config/workdir.go
@@ -4,7 +4,7 @@ import (
"fmt"
"log"
"os"
- "path"
+ "path/filepath"
)
const (
@@ -33,7 +33,7 @@ func (c *Config) checkWorkDir() {
}
}
}
- c.workDir = path.Clean(c.workDir)
+ c.workDir = filepath.Clean(c.workDir)
if c.verbose {
log.Println("Setting work directory to ", c.workDir)
}