From c31e7cf4df0970a85a77005b7f86cc5f5e8e39bd Mon Sep 17 00:00:00 2001 From: backwardspy Date: Sun, 14 Apr 2024 14:53:00 +0100 Subject: [PATCH] fix(vscode): only replace node link if it exists --- wsl.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wsl.nix b/wsl.nix index abfa4fd..981e5cd 100644 --- a/wsl.nix +++ b/wsl.nix @@ -86,8 +86,10 @@ # }; # services.vscode-remote-workaround.script = '' # for i in ~/.vscode-server/bin/*; do - # echo "Fixing vscode-server in $i..." - # ln -sf ${pkgs.nodejs_18}/bin/node $i/node + # if [ -e $i/node ]; then + # echo "Fixing vscode-server in $i..." + # ln -sf ${pkgs.nodejs_18}/bin/node $i/node + # fi # done # ''; # };