wg-quick: don't break push notifications

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-05-31 16:40:50 +02:00
parent e664a05d4b
commit 8c32c32c2b
2 changed files with 3 additions and 2 deletions

View File

@ -57,9 +57,10 @@ public final class ToolsInstaller {
if (path == null)
return INSTALL_DIRS[0];
final List<String> paths = Arrays.asList(path.split(":"));
for (final File dir : INSTALL_DIRS)
for (final File dir : INSTALL_DIRS) {
if (paths.contains(dir.getPath()) && dir.isDirectory())
return dir;
}
return null;
}

@ -1 +1 @@
Subproject commit 6977826c2c9840f79dc2ac6b4206a5f393e9dfb4
Subproject commit b57461ceb01e591525201a9b8db3bf5107e51f8d