fix failure due to superfluous slashes in path
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
aca703a011
commit
713850fcb4
|
@ -24,11 +24,13 @@ let
|
|||
root }:
|
||||
let
|
||||
allPathRootsAllowed = (length dirRootsToInclude) == 0;
|
||||
# this removes superfluous slashes from the path
|
||||
cleanRoot = "${toString (/. + root)}/";
|
||||
in
|
||||
path: type:
|
||||
let
|
||||
baseName = baseNameOf (toString path);
|
||||
subpath = elemAt (splitString "${toString root}/" path) 1;
|
||||
subpath = elemAt (splitString cleanRoot path) 1;
|
||||
spdir = elemAt (splitString "/" subpath) 0;
|
||||
|
||||
in lib.cleanSourceFilter path type && (
|
||||
|
|
Loading…
Reference in New Issue