From: Dana Jansens Date: Tue, 12 Jan 2010 18:59:25 +0000 (-0500) Subject: Fixes bug #4492 (mis-using the return value of grep -q in openbox-gnome-session script X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=62e36ad0410ce888e7097e7bce5cbbf67b5b6290;p=chaz%2Fopenbox Fixes bug #4492 (mis-using the return value of grep -q in openbox-gnome-session script --- diff --git a/data/xsession/openbox-gnome-session.in b/data/xsession/openbox-gnome-session.in index 6765ae82..1f17edbc 100644 --- a/data/xsession/openbox-gnome-session.in +++ b/data/xsession/openbox-gnome-session.in @@ -37,7 +37,7 @@ else if test -z "$SESSION"; then # if its empty then just run openbox SESSION="[openbox]" - elif test -z $(echo "$SESSION" | grep -q openbox); then + elif echo "$SESSION" | grep -q openbox; then # if openbox isn't in the session then append it SESSION="${SESSION%]},openbox]" fi