Skip to content

Commit

Permalink
Merge pull request #18 from suganyasuven/dependency-fix-1
Browse files Browse the repository at this point in the history
Fix permission denied error when pulling new version
  • Loading branch information
keizer619 authored Mar 17, 2020
2 parents 3f006c3 + 108ef45 commit 63fbbb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/ballerinalang/command/util/ToolUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,8 @@ private static void downloadAndSetupDependency(HttpURLConnection conn, PrintStre
zipFile = Paths.get(zipFileLocation).toFile();
downloadFile(conn, zipFileLocation, dependency, printStream);
unzip(zipFileLocation, dependencyLocation);
addExecutablePermissionToFile(new File(dependencyLocation + File.separator + dependency
+ File.separator + "bin" + File.separator + "java"));
if (zipFile.exists()) {
zipFile.delete();
}
Expand Down

0 comments on commit 63fbbb7

Please sign in to comment.