Fix mounting in some cases

This commit is contained in:
Maschell 2020-07-10 17:54:20 +02:00
parent a18b059004
commit 5c8ea1f9d5

View File

@ -135,7 +135,7 @@ public class Main {
if (mountparent != null && !mountparent.exists()) { if (mountparent != null && !mountparent.exists()) {
System.err.println("Mounting to " + mount + " is not possible." + mountparent + " does not exist"); System.err.println("Mounting to " + mount + " is not possible." + mountparent + " does not exist");
return; 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"); System.err.println("Mounting to " + mount + " is not possible. It's already mounted or in use");
return; return;
} }