Commit a11080cf authored by zeroleak's avatar zeroleak
Browse files

improve findTorExecutableLocal()

parent 30e7b556
......@@ -47,7 +47,12 @@ public class JavaTorClient {
private Optional<File> findTorExecutableLocal() {
try {
List<String> whichResult = CliUtils.exec("which tor");
// try uppercase
List<String> whichResult = CliUtils.exec("which Tor");
if (whichResult.isEmpty()) {
// try lowercase
whichResult = CliUtils.exec("which tor");
}
if (whichResult.size() > 0) {
if (log.isDebugEnabled()) {
log.debug("Tor executable found in: " + StringUtils.join(whichResult.toArray(), ";"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment