Skip to content
Snippets Groups Projects
Commit 496d14f1 authored by Simon McVittie's avatar Simon McVittie
Browse files

When falling back to running directly, put the search paths back

parent d5c46fac
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,19 @@ fi ...@@ -69,6 +69,19 @@ fi
if [ -z "$BWRAP" ]; then if [ -z "$BWRAP" ]; then
echo "$me: cannot find bwrap, falling back to executing '$*' directly" >&2 echo "$me: cannot find bwrap, falling back to executing '$*' directly" >&2
if [ -n "$caller_ld_preload" ]; then
export LD_PRELOAD="$caller_ld_preload"
fi
if [ -n "$caller_path" ]; then
export PATH="$caller_path"
fi
if [ -n "$caller_ld_library_path" ]; then
export LD_LIBRARY_PATH="$caller_ld_library_path"
else
unset LD_LIBRARY_PATH
fi
exec "$@" exec "$@"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment