mirror of https://github.com/perkeep/perkeep.git
devcam: fix slash-vs-backslash bug on Windows
Change-Id: Id9c952d406db36319919ddbfd1695b5405277bde
This commit is contained in:
parent
5bf44f9aa4
commit
bda8ad3c4b
|
@ -24,6 +24,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
pathpkg "path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -167,7 +168,7 @@ func build(path string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
_, cmdName := filepath.Split(path)
|
_, cmdName := filepath.Split(path)
|
||||||
target := filepath.Join("camlistore.org", path)
|
target := pathpkg.Join("camlistore.org", filepath.ToSlash(path))
|
||||||
binPath := filepath.Join("bin", cmdName)
|
binPath := filepath.Join("bin", cmdName)
|
||||||
var modtime int64
|
var modtime int64
|
||||||
fi, err := os.Stat(binPath)
|
fi, err := os.Stat(binPath)
|
||||||
|
|
Loading…
Reference in New Issue