From 79b4ca91cf6ada9e5851507b676be49c68c0ae70 Mon Sep 17 00:00:00 2001 From: Terje Larsen Date: Wed, 3 Jan 2024 20:23:02 +0000 Subject: [PATCH 1/2] fix: start menu launchers rsync of directory symlinks --- modules/wsl-distro.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix index 50b81ea1..39aae15b 100644 --- a/modules/wsl-distro.nix +++ b/modules/wsl-distro.nix @@ -125,7 +125,7 @@ in if (( ''${#targets[@]} != 0 )); then mkdir -p "/usr/share/$x" - ${pkgs.rsync}/bin/rsync -ar --delete-after "''${targets[@]}" "/usr/share/$x" + ${pkgs.rsync}/bin/rsync -ar --copy-dirlinks --delete-after "''${targets[@]}" "/usr/share/$x" else rm -rf "/usr/share/$x" fi From 462c51d7f09eb9499a5e3ff11f03413aebf63faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 3 Jan 2024 23:39:43 +0100 Subject: [PATCH 2/2] Use long args for rsync for better readability --- modules/wsl-distro.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix index 39aae15b..d58e9c68 100644 --- a/modules/wsl-distro.nix +++ b/modules/wsl-distro.nix @@ -125,7 +125,7 @@ in if (( ''${#targets[@]} != 0 )); then mkdir -p "/usr/share/$x" - ${pkgs.rsync}/bin/rsync -ar --copy-dirlinks --delete-after "''${targets[@]}" "/usr/share/$x" + ${pkgs.rsync}/bin/rsync --archive --copy-dirlinks --delete-after --recursive "''${targets[@]}" "/usr/share/$x" else rm -rf "/usr/share/$x" fi