Revert "Merge pull request #230693 from Atemu/fix/fhsenv-escape-runScript-path"

This reverts commit 840f2e0ac5, reversing
changes made to d3ed0402e5.

This breaks appimage which puts args into the runScript and we don't provide a
good way to pass thru additional args.

The actual bug was in nix-alien which should escape paths; providing a valid
runScript is the responsibility of the caller.
This commit is contained in:
Atemu 2023-05-21 12:43:19 +02:00 committed by Anderson Torres
parent 344ab3d688
commit d5f0da152a

View File

@ -111,7 +111,7 @@ let
init = run: writeShellScript "${name}-init" ''
source /etc/profile
${createLdConfCache}
exec ${lib.escapeShellArg run} "$@"
exec ${run} "$@"
'';
indentLines = str: lib.concatLines (map (s: " " + s) (filter (s: s != "") (lib.splitString "\n" str)));