Commit b7a3eb90 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add check_display and use it in rpmbugs

parent e143cd12
...@@ -58,7 +58,10 @@ if [ "$1" = "-t" ] ; then ...@@ -58,7 +58,10 @@ if [ "$1" = "-t" ] ; then
which links >/dev/null && BROWSER=links which links >/dev/null && BROWSER=links
fi fi
test -z "$DISPLAY" && TEXT=1 if ! check_display ; then
TEXT=1
which links >/dev/null && BROWSER=links
fi
SPECLIST=$@ SPECLIST=$@
if [ "$1" = "-qf" ] if [ "$1" = "-qf" ]
......
...@@ -220,3 +220,9 @@ enable_ccache() ...@@ -220,3 +220,9 @@ enable_ccache()
} }
# If DISPLAY is broken
check_display()
{
xset -b
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment