diff options
| author | outremonde <outremonde@vivaldi.net> | 2025-06-11 12:17:02 -0400 |
|---|---|---|
| committer | outremonde <outremonde@vivaldi.net> | 2025-06-11 12:17:02 -0400 |
| commit | 5883983cd0cd8cb697f21932d139aed5127e6a3e (patch) | |
| tree | edd28b2178425bdb6e563e5008644715a22fdf15 /lib | |
| parent | a2677c1449fede4711bb37d2aa9bcfc50ff5cad2 (diff) | |
fixed umport excluding the wrong files
Former-commit-id: d9d1afd929bd23826ea512e3656834199cd712bc
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/umport.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/umport.nix b/lib/umport.nix index f076d85..5cd79a6 100755 --- a/lib/umport.nix +++ b/lib/umport.nix @@ -11,7 +11,7 @@ excludedFiles = filter (path: pathIsRegularFile path) exclude; excludedDirs = filter (path: pathIsDirectory path) exclude; isExcluded = path: - if (elem path excludedFiles) || (hasSuffix "flake.nix" path) || (hasSuffix "shell.nix" path) + if (elem path excludedFiles) || ("flake.nix" == path) || ("shell.nix" == path) then true else (filter (excludedDir: lib.path.hasPrefix excludedDir path) excludedDirs) != []; in |
