Skip to content

Commit 8ca43db

Browse files
committed
Update GitHub.java
1 parent ed7aeae commit 8ca43db

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/io/github/intisy/gradle/github/impl

1 file changed

+1
-1
lines changed

src/main/java/io/github/intisy/gradle/github/impl/GitHub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class GitHub {
3636
*/
3737
public static File getAsset(Logger logger, String repoName, String repoOwner, String version, org.kohsuke.github.GitHub github) {
3838
File direction = new File(GradleUtils.getGradleHome().toFile(), repoOwner);
39-
if (!direction.mkdirs())
39+
if (!direction.exists() && !direction.mkdirs())
4040
throw new RuntimeException("Failed to create directory: " + direction.getAbsolutePath());
4141
File jar = new File(direction, repoName + "-" + version + ".jar");
4242
logger.debug("Starting the process to implement jar: " + jar.getName());

0 commit comments

Comments
 (0)