always delete hwi dir on osx before copying

This commit is contained in:
Craig Raw 2021-06-30 11:51:31 +02:00
parent 4b028af123
commit 9a09bb8cda

View file

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