changed scripts/path.awk, so that the base and input paths are normalized into ABSOLUTE paths before processing
This commit is contained in:
parent
6a8c7b75c9
commit
8cbbd2abca
|
@ -30,8 +30,8 @@ function resolvePath(path, resolvedPath, pathComponents) {
|
|||
}
|
||||
|
||||
function getRelativePath(base, path, resolvedPath, baseComponents, pathComponents, commonPrefix) {
|
||||
path = resolvePath(path)
|
||||
base = resolvePath(base)
|
||||
path = resolvePath(ENVIRON["PWD"] "/" path)
|
||||
base = resolvePath(ENVIRON["PWD"] "/" base)
|
||||
pathComponents[1] = ""
|
||||
baseComponents[1] = ""
|
||||
isCommonPrefixUnfinished = 1
|
||||
|
|
Loading…
Reference in New Issue