Message ID | 20240131221748.1190-1-goodoldpaul@autistici.org |
---|---|
State | New |
Headers | show |
Series | [bug#68857] gnu: home: dotfiles: Avoid creating extra directory in $HOME. | expand |
diff --git a/gnu/home/services/dotfiles.scm b/gnu/home/services/dotfiles.scm index 6a740c42ce..fc842f1fb3 100644 --- a/gnu/home/services/dotfiles.scm +++ b/gnu/home/services/dotfiles.scm @@ -58,7 +58,11 @@ (define (import-dotfiles directory files) generated by recursively visiting DIRECTORY and mapping its contents to the user's home directory, excluding files that match any of the patterns in EXCLUDED." (define (strip file) - (string-drop file (+ 1 (string-length directory)))) + (string-join + (cdr + (string-split (string-drop file (+ 1 (string-length directory))) + #\/)) + "/")) (define (format file) ;; Remove from FILE characters that cannot be used in the store.