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

Check whether bwrap works, not just whether it exists

parent 496d14f1
Branches
Tags
No related merge requests found
...@@ -67,8 +67,8 @@ if [ -z "${BWRAP:-}" ]; then ...@@ -67,8 +67,8 @@ if [ -z "${BWRAP:-}" ]; then
fi fi
fi fi
if [ -z "$BWRAP" ]; then if [ -z "$BWRAP" ] || ! "$BWRAP" --bind / / true; then
echo "$me: cannot find bwrap, falling back to executing '$*' directly" >&2 echo "$me: cannot find bwrap or it doesn't work, falling back to executing '$*' directly" >&2
if [ -n "$caller_ld_preload" ]; then if [ -n "$caller_ld_preload" ]; then
export LD_PRELOAD="$caller_ld_preload" export LD_PRELOAD="$caller_ld_preload"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment