Fixes bug #4492 (mis-using the return value of grep -q in openbox-gnome-session script
This commit is contained in:
parent
e8200ae603
commit
62e36ad041
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue