Skip to content

Commit fe0c565

Browse files
committed
Fixed typo in xrandr redirection.
1 parent 34de849 commit fe0c565

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

system-info

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -661,14 +661,9 @@ function GetGraphicsEnv()
661661
if [ $DESKTOP_SESSION ]
662662
then
663663
echo -e "The Current Desktop Session is: $DESKTOP_SESSION "
664-
xmode=$(xrandr -q &> /dev/null | egrep --color=never -e 'Screen' -e 'connected ')
665-
if [ $? -eq 1 ]
666-
then
667-
echo -e "'xrandr' could not determine resolution."
668-
else
669-
echo -e "The Current X Desktop Information Details from 'xrandr' are: "
670-
echo -e "$xmode"
671-
fi
664+
xmode=$(xrandr -q 2> /dev/null | egrep --color=never -e 'Screen' -e 'connected ')
665+
echo -e "The Current X Desktop Information Details from 'xrandr' are: "
666+
echo -e "$xmode"
672667
else
673668
echo -e "The Current Desktop Session is: <Not Populated> "
674669
fi

0 commit comments

Comments
 (0)