Using absolute paths in generated diff commands, to ease running them from any directory.
This commit is contained in:
parent
c163e6d0d2
commit
da587d48ed
|
|
@ -120,7 +120,7 @@ public class MD5DB {
|
||||||
for ( String dir : Arrays.asList(GLOBAL_MD5_DB_DIR, LOCAL_MD5_DB_DIR)) {
|
for ( String dir : Arrays.asList(GLOBAL_MD5_DB_DIR, LOCAL_MD5_DB_DIR)) {
|
||||||
File f = getFileForMD5(md5, dir);
|
File f = getFileForMD5(md5, dir);
|
||||||
if ( f.exists() && f.canRead() )
|
if ( f.exists() && f.canRead() )
|
||||||
return f.getPath();
|
return f.getAbsolutePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
return valueIfNotFound;
|
return valueIfNotFound;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue