@@ -61,15 +61,14 @@ rec {
6161
6262 makeStartup = { target, nixUserChrootFlags, nix-user-chroot', run }:
6363 writeScript "startup" ''
64− #!/bin/sh
65− .${nix-user-chroot'}/bin/nix-user-chroot -n ./nix ${nixUserChrootFlags} -- ${target}${run} $@
64+.${nix-user-chroot'}/bin/nix-user-chroot -n ./nix ${nixUserChrootFlags} -- ${target}${run} $@
6665 '';
6766
6867 nix-bootstrap = { target, extraTargets ? [], run, nix-user-chroot' ? nix-user-chroot, nixUserChrootFlags ? "" }:
6968 let
7069 script = makeStartup { inherit target nixUserChrootFlags nix-user-chroot' run; };
7170 in makebootstrap {
72− startup = ".${script}";
71+ startup = ".${script} '\"$@\"'";
7372 targets = [ "${script}" ] ++ extraTargets;
7473 };
7574