1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-28 09:28:32 +02:00

files: avoid cleanup if old home-files is missing

This commit is contained in:
Robert Helgesson 2022-03-26 15:04:19 +01:00
parent 8afee75d0d
commit 171702dd88
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -239,7 +239,7 @@ in
}
function cleanOldGen() {
if [[ ! -v oldGenPath ]] ; then
if [[ ! -v oldGenPath || ! -e "$oldGenPath/home-files" ]] ; then
return
fi