home: symlink-manager: Handle non-existing directory during cleanup.

* gnu/home/services/symlink-manager.scm (update-symlinks-script): Handle
non-existing directory during cleanup.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Andrew Tropin 2022-03-29 11:56:48 +03:00 committed by Ludovic Courtès
parent ac8e987ce2
commit 435e1cef00
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -157,6 +157,7 @@ subdirectory from XDG_CONFIG_HOME to generate a target path."
#t
(G_ "Skipping ~a (not an empty directory)... done\n")
directory))
((= ENOENT errno) #t)
((= ENOTDIR errno) #t)
(else
(apply throw args)))))))))