changed scripts/path.awk, so that the base and input paths are normalized into ABSOLUTE paths before processing

This commit is contained in:
Abdullah Islam 2023-06-21 15:22:08 +06:00
parent 6a8c7b75c9
commit 8cbbd2abca
1 changed files with 2 additions and 2 deletions

View File

@ -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