From 9a09bb8cdab420a4d7eefbbfd4d19d00dcf80117 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 30 Jun 2021 11:51:31 +0200 Subject: [PATCH] always delete hwi dir on osx before copying --- src/main/java/com/sparrowwallet/sparrow/io/Hwi.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java b/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java index c9e1bb8b..b3e0f345 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java @@ -254,6 +254,7 @@ public class Hwi { File hwiHomeDir = getHwiHomeDir(); File hwiVersionDir = new File(hwiHomeDir, HWI_VERSION_DIR); + IOUtils.deleteDirectory(hwiVersionDir); if(!hwiVersionDir.exists()) { Files.createDirectories(hwiVersionDir.toPath(), PosixFilePermissions.asFileAttribute(ownerExecutableWritable)); }