Skip to content

Commit a965e0e

Browse files
committed
Fix typo.
1 parent 91a962e commit a965e0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const UPLOAD_PATH_WINDOWS = "D:\\"
2020
const UPLOAD_PATH_KOBO = "/mnt/onboard/kobofileserver"
2121

2222
var uploadPath string
23-
var refreshcript string
23+
var refreshScript string
2424

2525
func responseString(msg string) string {
2626
return fmt.Sprintf("%s", msg)
@@ -67,7 +67,7 @@ func convertEPUB(converted bool, fileName string) (string, error) {
6767

6868
func notifyKoboRefresh() error {
6969
if runtime.GOOS != "windows" {
70-
cmd := exec.Command("/bin/sh", refreshcript)
70+
cmd := exec.Command("/bin/sh", refreshScript)
7171
err := cmd.Run()
7272
if err != nil {
7373
return err
@@ -153,7 +153,7 @@ func main() {
153153

154154
exePath = filepath.Dir(exePath)
155155

156-
refreshcript = path.Join(exePath, "refresh.sh")
156+
refreshScript = path.Join(exePath, "refresh.sh")
157157

158158
webPath := path.Join(exePath, "web")
159159
fs := http.FileServer(http.Dir(webPath))

0 commit comments

Comments
 (0)