mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
Merge pull request #230693 from Atemu/fix/fhsenv-escape-runScript-path
buildFHSEnvBubblewrap: escape runScript path
This commit is contained in:
commit
840f2e0ac5
@ -111,7 +111,7 @@ let
|
|||||||
init = run: writeShellScript "${name}-init" ''
|
init = run: writeShellScript "${name}-init" ''
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
${createLdConfCache}
|
${createLdConfCache}
|
||||||
exec ${run} "$@"
|
exec ${lib.escapeShellArg run} "$@"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
indentLines = str: lib.concatLines (map (s: " " + s) (filter (s: s != "") (lib.splitString "\n" str)));
|
indentLines = str: lib.concatLines (map (s: " " + s) (filter (s: s != "") (lib.splitString "\n" str)));
|
||||||
|
Loading…
Reference in New Issue
Block a user