From 3bfc7ec9cbb91f0f07886d45e5d25ef75d387680 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 17 Mar 2009 00:09:52 +0000 Subject: [PATCH] (no version change) Some code clean up, got rid of a few more awk one liners, and added back in the local variable. --- inxi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 428c86d..864e53e 100755 --- a/inxi +++ b/inxi @@ -1982,7 +1982,9 @@ get_graphics_res_data() }' ) fi else - screen_resolution=$( stty -F $( readlink /proc/$PPID/fd/0 ) size | gawk '{print $2"x"$1}' ) + screen_resolution=$( stty -F $( readlink /proc/$PPID/fd/0 ) size | gawk '{ + print $2"x"$1 + }' ) fi echo "$screen_resolution" } @@ -2023,7 +2025,9 @@ get_graphics_x_data() # new method added since radeon and X.org and the disappearance of version : ...etc # Later on, the normal textual version string returned, e.g. like: X.Org version: 6.8.2 # A failover mechanism is in place. (if $x_version is empty, the release number is parsed instead) - x_version=$( xdpyinfo | gawk '/version:/ { print $NF }' ) + x_version=$( xdpyinfo | gawk '/version:/ { + print $NF + }' ) if [[ -z $x_version ]];then x_version=$(xdpyinfo | gawk -F': +' ' BEGIN { @@ -3066,7 +3070,7 @@ print_gfx_data() { local gfx_data='' i='' card_one='Card ' root_alert='' local screen_resolution="$( get_graphics_res_data )" - local b_is_mesa='false' + local b_is_mesa='false' display_full_string='' # set A_GFX_CARD_DATA get_graphics_card_data # set A_X_DATA