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

pressure-vessel-wrap: Detect support for "bwrap --" correctly


For some reason bwrap writes its usage message to stderr, even though
the rest of the help goes to stdout.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent f2cd2359
No related branches found
No related tags found
No related merge requests found
......@@ -326,7 +326,7 @@ if [ -z "$BWRAP" ] || ! "$BWRAP" --bind / / true; then
exec "${wrapped_command[@]}"
fi
if "$BWRAP" --help | grep -F '[--]' 2>/dev/null; then
if "$BWRAP" --help 2>&1 | grep -F '[--]' >/dev/null 2>/dev/null; then
bwrap_end_of_options="--"
else
# bwrap doesn't support the -- syntax
......
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