From a4e64772d6ba49ee369ca4f68312d4a92dcaff20 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Fri, 6 Aug 2021 23:31:22 +0200 Subject: [PATCH] Fix brainfart --- bubblewine | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bubblewine b/bubblewine index 11e12cd..d817edb 100755 --- a/bubblewine +++ b/bubblewine @@ -50,10 +50,10 @@ xsocket="/tmp/.X11-unix/X${DISPLAY#:}" ro_binds="" # Handle various wrapper scripts around wine that some distros have. -if head -c 1 $(which wine) | grep -F '/bin/sh' >/dev/null 2>&1; then +if head -1 $(which wine) | grep -F '/bin/sh' >/dev/null 2>&1; then ro_binds="$ro_binds --ro-bind /bin/sh /bin/sh" fi -if head -c 1 $(which wine) | grep -F '/bin/bash' >/dev/null 2>&1; then +if head -1 $(which wine) | grep -F '/bin/bash' >/dev/null 2>&1; then ro_binds="$ro_binds --ro-bind /bin/bash /bin/bash" fi