1
0
Fork 0

Make nvd job more robust

This commit is contained in:
Malte Brandy 2021-07-04 23:17:16 +02:00
parent ea3b9e3532
commit 3b94d85aee
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -4,5 +4,9 @@ let
dag = config.lib.dag;
in
{
home.activation.report-changes = dag.entryAnywhere "${pkgs.nvd}/bin/nvd diff $oldGenPath $newGenPath";
home.activation.report-changes = dag.entryAnywhere ''
if [[ -n "$oldGenPath" && "$oldGenPath" != "$newGenPath" ]]; then
${pkgs.nvd}/bin/nvd diff $oldGenPath $newGenPath
fi
'';
}