From 58abfed7575705cc361ad002ef49e8e27191b216 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 21 May 2011 23:20:21 +0000 Subject: [PATCH] tweaks --- inxi | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/inxi b/inxi index af31215..9dcd07f 100755 --- a/inxi +++ b/inxi @@ -2617,12 +2617,11 @@ detect_desktop_environment() version=$( get_de_version 'xfdesktop' 'xfdesktop[[:space:]]version' '5' ) if [[ -z $version ]];then version='4' - else - if [[ $B_EXTRA_DATA == 'true' ]];then - toolkit=$( get_de_version 'xfdesktop' 'Built[[:space:]]with[[:space:]]GTK' '4' ) - if [[ -n $toolkit ]];then - version="$version (Gtk+ $toolkit)" - fi + fi + if [[ $B_EXTRA_DATA == 'true' ]];then + toolkit=$( get_de_version 'xfdesktop' 'Built[[:space:]]with[[:space:]]GTK' '4' ) + if [[ -n $toolkit ]];then + version="$version (Gtk+ $toolkit)" fi fi desktop_environment="Xfce" @@ -2631,12 +2630,11 @@ detect_desktop_environment() version=$( get_de_version 'xfdesktop' 'xfdesktop[[:space:]]version' '5' ) if [[ -z $version ]];then version='5' - else - if [[ $B_EXTRA_DATA == 'true' ]];then - toolkit=$( get_de_version 'xfdesktop' 'Built[[:space:]]with[[:space:]]GTK' '4' ) - if [[ -n $toolkit ]];then - version="$version (Gtk+ $toolkit)" - fi + fi + if [[ $B_EXTRA_DATA == 'true' ]];then + toolkit=$( get_de_version 'xfdesktop' 'Built[[:space:]]with[[:space:]]GTK' '4' ) + if [[ -n $toolkit ]];then + version="$version (Gtk+ $toolkit)" fi fi desktop_environment="Xfce"