fix: hopefully fix the too many arguments error on WSL

This commit is contained in:
Matthijs Steen
2023-04-28 11:39:07 +02:00
parent 7d9f9a789e
commit 8a23911ea9
+2 -1
View File
@@ -1,6 +1,7 @@
{
lib,
buildFHSUserEnv,
runtimeShell,
writeShellApplication,
coreutils,
findutils,
@@ -131,7 +132,7 @@
${optionalString (!enableFHS) ''
mv "$actual_dir/node" "$actual_dir/node.orig"
cat <<EOF > "$actual_dir/node"
#!/usr/bin/env sh
#!${runtimeShell}
# The core utilities are missing in the case of WSL, but required by Node.js.
PATH="\''${PATH:+\''${PATH}:}${makeBinPath [ coreutils ]}"