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 }:
|
root }:
|
||||||
let
|
let
|
||||||
allPathRootsAllowed = (length dirRootsToInclude) == 0;
|
allPathRootsAllowed = (length dirRootsToInclude) == 0;
|
||||||
|
# this removes superfluous slashes from the path
|
||||||
|
cleanRoot = "${toString (/. + root)}/";
|
||||||
in
|
in
|
||||||
path: type:
|
path: type:
|
||||||
let
|
let
|
||||||
baseName = baseNameOf (toString path);
|
baseName = baseNameOf (toString path);
|
||||||
subpath = elemAt (splitString "${toString root}/" path) 1;
|
subpath = elemAt (splitString cleanRoot path) 1;
|
||||||
spdir = elemAt (splitString "/" subpath) 0;
|
spdir = elemAt (splitString "/" subpath) 0;
|
||||||
|
|
||||||
in lib.cleanSourceFilter path type && (
|
in lib.cleanSourceFilter path type && (
|
||||||
|
|
Loading…
Reference in New Issue