readPathsFromFile: fixup after #23851
The final newline would produce an empty string; let's filter all empty lines as well.
This commit is contained in:
parent
48deda9f36
commit
36de745e1b
@ -479,7 +479,7 @@ rec {
|
||||
lines =
|
||||
builtins.map (lib.removeSuffix "\n")
|
||||
(lib.splitString "\n" (builtins.readFile file));
|
||||
removeComments = lib.filter (line: !(lib.hasPrefix "#" line));
|
||||
removeComments = lib.filter (line: line != "" && !(lib.hasPrefix "#" line));
|
||||
relativePaths = removeComments lines;
|
||||
absolutePaths = builtins.map (path: builtins.toPath (root + "/" + path)) relativePaths;
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user