mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
fix bug in getRegistryValue
This commit is contained in:
@@ -313,17 +313,18 @@ public class WindowsHgInstaller extends AbstractHgInstaller
|
||||
while (scanner.hasNextLine())
|
||||
{
|
||||
String line = scanner.nextLine();
|
||||
int index = line.indexOf("REG_SZ");
|
||||
int index = line.indexOf("REG_SZ");
|
||||
|
||||
if (index > 0)
|
||||
{
|
||||
programmDirectory = line.substring(index
|
||||
+ "REG_SZ".length()).trim();
|
||||
+ "REG_SZ".length()).trim();
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("use programm directory {}", programmDirectory);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user