Skip to content

Commit

Permalink
Fix small issue in tofu name logic (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfespa17 committed Mar 4, 2024
1 parent bf326cf commit 7ce14ea
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,10 @@ public String downloadTofuVersion(String tofuVersion) throws IOException {
for (TofuAsset asset : assets) {
String[] parts = asset.getName().split("_");
String os = parts[2];
String arch = parts[3];
String arch = parts[3].replace(".zip",""); // we need to remove .zip from the asset name example: tofu_1.6.2_linux_amd64.zip
if (doSystemAndReleaseMatch(arch, os)) {
String zipReleaseURL = asset.getBrowser_download_url();
String fileName = String.format(defaultFileName, tofuVersion, getOs(), arch);

tofuFilePath = downloadFileOrReturnPathIfAlreadyExists(fileName, zipReleaseURL, tofuVersion, true);
notFound = false;
break;
Expand Down

0 comments on commit 7ce14ea

Please sign in to comment.