Skip to content

Commit

Permalink
Update fs.go
Browse files Browse the repository at this point in the history
Updated to match updates in new Go compiler
  • Loading branch information
tobychui committed Feb 21, 2023
1 parent a408998 commit 94aee3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ func autoDetectExecutable() string {
binaryExecPath := "arozos_" + runtime.GOOS + "_" + runtime.GOARCH
if runtime.GOOS == "windows" {
binaryExecPath += ".exe"
} else {
binaryExecPath = "./" + binaryExecPath
}

binaryExecPath = "./" + binaryExecPath

if fileExists(binaryExecPath) {
return binaryExecPath
} else {
Expand All @@ -92,7 +92,7 @@ func autoDetectExecutable() string {
}

if runtime.GOOS == "windows" {
return "arozos.exe"
return "./arozos.exe"
} else {
return "./arozos"
}
Expand Down

0 comments on commit 94aee3a

Please sign in to comment.