Skip to content

Commit

Permalink
Merge pull request #75 from suganyasuven/master
Browse files Browse the repository at this point in the history
Avoid generating unwanted file in project directory
  • Loading branch information
keizer619 authored Jan 26, 2021
2 parents c0ef2a2 + c000c30 commit f58b1b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/ballerinalang/command/util/OSUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static String getInstallerVersionFilePath() throws IOException {
ToolUtil.setInstallerVersion(installerVersionfile.getPath());
ToolUtil.setVersion(getBallerinaVersionFilePath(), ToolUtil.getCurrentInstalledBallerinaVersion());
}
return userHome + File.separator + BALLERINA_HOME_DIR + File.separator + INSTALLER_VERSION;
return installerVersionfile.getPath();
}

public static String getBallerinaDistListFilePath() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/ballerinalang/command/util/ToolUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static String getCurrentBallerinaVersion() {
String installedInstallerVersion = getInstallerVersion(OSUtils.getInstalledInstallerVersionPath());
if (!installedInstallerVersion.equals(getInstallerVersion(installerVersionFilePath))) {
setCurrentBallerinaVersion(ToolUtil.getCurrentInstalledBallerinaVersion());
setInstallerVersion(installedInstallerVersion);
setInstallerVersion(installerVersionFilePath);
}
}
String userVersion = getVersion(OSUtils.getBallerinaVersionFilePath());
Expand Down

0 comments on commit f58b1b4

Please sign in to comment.