From f9682ac36bec6789f6fa6edb1d4242d8a4a442f6 Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 6 Jun 2022 17:28:28 +0300 Subject: interop: fix wrapper hack --- 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 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 -- cgit v1.2.3