lib/removePackages: Handle null packages
This commit is contained in:
parent
10373f55a4
commit
f9a715c71e
1 changed files with 1 additions and 1 deletions
|
@ -7,4 +7,4 @@ let
|
||||||
fold = name: acc: regex:
|
fold = name: acc: regex:
|
||||||
if acc == false then false
|
if acc == false then false
|
||||||
else match regex name == null;
|
else match regex name == null;
|
||||||
in regexList: filter (pkg: foldl' (getName pkg |> fold) true regexList)
|
in regexList: filter (pkg: pkg != null -> foldl' (getName pkg |> fold) true regexList)
|
||||||
|
|
Loading…
Reference in a new issue