mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 23:39:56 +01:00
style(be): joining path
This commit is contained in:
parent
5860e1378b
commit
312cafa23c
@ -7,6 +7,7 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
@ -50,7 +51,7 @@ func (t *task) getRepoName() string {
|
||||
}
|
||||
|
||||
func (t *task) getRepoPath() string {
|
||||
return util.Config.TmpPath + "/" + t.getRepoName()
|
||||
return path.Join(util.Config.TmpPath, t.getRepoName())
|
||||
}
|
||||
|
||||
func (t *task) validateRepo() error {
|
||||
|
Loading…
Reference in New Issue
Block a user