summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2022-06-06 17:28:28 +0300
committerK900 <me@0upti.me>2022-06-06 17:28:28 +0300
commitf9682ac36bec6789f6fa6edb1d4242d8a4a442f6 (patch)
treefb585bd7079a1ebe52455986d52ab6a92cfc49cf
parent0bc8728d321fbac3f8c8cfa7c648471edf486bc6 (diff)
interop: fix wrapper hack
-rw-r--r--modules/wsl-distro.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix
index 757245b..b81e142 100644
--- a/modules/wsl-distro.nix
+++ b/modules/wsl-distro.nix
@@ -97,7 +97,7 @@ with builtins; with lib;
compatWrapper = pkgs.writeShellScript "nixos-wsl-binfmt-hack" ''
/init /nixos-wsl-does-not-exist.exe
[ $? -eq 255 ] && shift
- exec /init $@
+ exec /init "$@"
'';
# use the autodetect hack if unset, otherwise call /init directly