From 58d230c628ebfdcc4bd2731eff7494db165ba817 Mon Sep 17 00:00:00 2001 From: Yinghao Zhu Date: Sat, 13 Mar 2021 18:17:40 +0800 Subject: [PATCH] fix: missing "/" in address --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 98cec8b..91dfc54 100644 --- a/main.go +++ b/main.go @@ -100,9 +100,9 @@ func main() { var exitCode int switch goos { case "windows": - exitCode = run.CompileJava("javac", "-encoding", "UTF-8", strconv.Itoa(num)+folderName+"/src/*.java") + exitCode = run.CompileJava("javac", "-encoding", "UTF-8", strconv.Itoa(num)+"/"+folderName+"/src/*.java") case "darwin", "linux": - exitCode = run.CompileJava("/bin/sh", "-c", "javac -encoding UTF-8 "+strconv.Itoa(num)+folderName+"/src/*.java") + exitCode = run.CompileJava("/bin/sh", "-c", "javac -encoding UTF-8 "+strconv.Itoa(num)+"/"+folderName+"/src/*.java") } if exitCode != 0 { fmt.Println("Compile Error!")