Make nvd job more robust
This commit is contained in:
parent
ea3b9e3532
commit
3b94d85aee
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue