Skip to content

Commit

Permalink
fix: missing "/" in address
Browse files Browse the repository at this point in the history
  • Loading branch information
yhzhu99 committed Mar 13, 2021
1 parent 80ab60f commit 58d230c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down

0 comments on commit 58d230c

Please sign in to comment.