guix: home: Delete existing symlink before re-linking it. * guix/scripts/home.scm (ensure-home-profile): Delete existing symlink before re-linking it.
guix/scripts/home.scm
164 | 164 | (let ((home (false-if-exception (lstat %home)))) | |
165 | 165 | (cond | |
166 | 166 | ((equal? (stat:type home) 'symlink) | |
167 | + | (delete-file %home) | |
167 | 168 | (symlink %current-home %home)) | |
168 | 169 | ((false-if-exception (lstat data-directory)) | |
169 | 170 | (leave (G_ "Your $HOME directory (~a) is not a symlink to the home |