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