Browse Source

always delete hwi dir on osx before copying

terminal
Craig Raw 4 years ago
parent
commit
9a09bb8cda
  1. 1
      src/main/java/com/sparrowwallet/sparrow/io/Hwi.java

1
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));
}

Loading…
Cancel
Save