From 1dbe3569b21fdca5350ededf29f0a4c039e0c813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 21 Aug 2022 22:44:05 +0200 Subject: [PATCH] Allow diff-system to fail When upgrading from older systems with nix 2.3.x the command is not yet understood. Since it is purely informational a failure can be safely ignored. --- modules/autoupdate.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/autoupdate.nix b/modules/autoupdate.nix index 7f1f0828..6defec1d 100644 --- a/modules/autoupdate.nix +++ b/modules/autoupdate.nix @@ -68,7 +68,7 @@ text = '' if [ -e /run/current-system ] && [ -e $systemConfig ]; then echo System package diff: - ${config.nix.package}/bin/nix store diff-closures /run/current-system $systemConfig + ${config.nix.package}/bin/nix store diff-closures /run/current-system $systemConfig || true fi ''; };