Fix mounting in some cases

This commit is contained in:
Maschell 2020-07-10 17:54:20 +02:00
parent a18b059004
commit 5c8ea1f9d5
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ public class Main {
if (mountparent != null && !mountparent.exists()) {
System.err.println("Mounting to " + mount + " is not possible." + mountparent + " does not exist");
return;
} else if (mount.exists()) {
} else if (mount.exists() && System.getProperty("os.name").contains("Windows")) {
System.err.println("Mounting to " + mount + " is not possible. It's already mounted or in use");
return;
}