home: symlink-manager: Use 'for-each' when used for effects.
* gnu/home/services/symlink-manager.scm (update-symlinks-script)[cleanup-symlinks] [create-symlinks]: Use 'for-each' instead of 'map'.
This commit is contained in:
parent
7a8856f540
commit
cf803b71c7
@ -125,7 +125,7 @@ appear only after all nested items already listed."
|
|||||||
(display
|
(display
|
||||||
(G_
|
(G_
|
||||||
"Cleaning up symlinks from previous home-environment.\n\n"))
|
"Cleaning up symlinks from previous home-environment.\n\n"))
|
||||||
(map
|
(for-each
|
||||||
(match-lambda
|
(match-lambda
|
||||||
(('dir . ".")
|
(('dir . ".")
|
||||||
(display (G_ "Cleanup finished.\n\n")))
|
(display (G_ "Cleanup finished.\n\n")))
|
||||||
@ -168,7 +168,7 @@ appear only after all nested items already listed."
|
|||||||
(readlink (string-append new-files-path "/" path)))
|
(readlink (string-append new-files-path "/" path)))
|
||||||
|
|
||||||
(let ((to-create ((file-tree-traverse #t) new-tree)))
|
(let ((to-create ((file-tree-traverse #t) new-tree)))
|
||||||
(map
|
(for-each
|
||||||
(match-lambda
|
(match-lambda
|
||||||
(('dir . ".")
|
(('dir . ".")
|
||||||
(display
|
(display
|
||||||
|
Loading…
Reference in New Issue
Block a user