Skip to content

Commit

Permalink
fix alpine checks
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen committed Jun 21, 2023
1 parent 9004991 commit fd4d5ba
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions binaries/binaries.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,16 @@ func GlobalCacheDir() string {
}

func FetchEngine(dir string, engineName string, binaryName string) error {
logger.Debug.Printf("checking %s...", engineName)
logger.Debug.Printf("checking %s %s...", engineName, binaryName)

to := GetEnginePath(dir, engineName, binaryName)

binaryPlatformRemoteName := binaryName
if binaryPlatformRemoteName == "linux" {
binaryPlatformRemoteName = "linux-static-x64"
}

if _, err := os.Stat(to); !os.IsNotExist(err) {
logger.Debug.Printf("%s is cached at %s", engineName, to)
return nil
}

url := platform.CheckForExtension(binaryName, fmt.Sprintf(EngineURL, EngineVersion, binaryPlatformRemoteName, engineName))
url := platform.CheckForExtension(binaryName, fmt.Sprintf(EngineURL, EngineVersion, binaryName, engineName))

logger.Debug.Printf("%s is missing, downloading...", engineName)

Expand Down

0 comments on commit fd4d5ba

Please sign in to comment.