diff --git a/pressure-vessel-wrap b/pressure-vessel-wrap
index aa4affb83c285a7768ee2077b4f28ba1e520bfd8..6f2b87a429cdf27f8b7f3849b37475ff3d9821c4 100755
--- a/pressure-vessel-wrap
+++ b/pressure-vessel-wrap
@@ -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