From 171702dd88f0ffcc89ad58a653015ac577519bf0 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 26 Mar 2022 15:04:19 +0100 Subject: [PATCH] files: avoid cleanup if old home-files is missing --- modules/files.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/files.nix b/modules/files.nix index 50dc50018..217496493 100644 --- a/modules/files.nix +++ b/modules/files.nix @@ -239,7 +239,7 @@ in } function cleanOldGen() { - if [[ ! -v oldGenPath ]] ; then + if [[ ! -v oldGenPath || ! -e "$oldGenPath/home-files" ]] ; then return fi