fix argument forwarding

If the argument had a whitespace, it would be forwarded as two separate
arguments.

Eg: ./hello -g "hello world!"
This commit is contained in:
zimbatm 2020-10-22 16:06:02 +02:00
parent b90d88d50f
commit cc47fa353c
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7

View File

@ -73,7 +73,7 @@ in rec {
makeStartup = { target, nixUserChrootFlags, nix-user-chroot', run }:
writeScript "startup" ''
#!/bin/sh
.${nix-user-chroot'}/bin/nix-user-chroot -n ./nix ${nixUserChrootFlags} -- ${target}${run} $@
.${nix-user-chroot'}/bin/nix-user-chroot -n ./nix ${nixUserChrootFlags} -- ${target}${run} "$@"
'';
nix-bootstrap = { target, extraTargets ? [], run, nix-user-chroot' ? nix-user-chroot, nixUserChrootFlags ? "" }: