From ef6799c1ceaf1aa6788612433549329747095ee4 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 (cherry picked from commit 171702dd88f0ffcc89ad58a653015ac577519bf0) --- modules/files.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/files.nix b/modules/files.nix index d6b5eb643..8db317fb4 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