From 7d7cfe1675065ef7edc2f1f03ccfbae78eadb175 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 28 Mar 2014 07:00:17 +0000 Subject: [PATCH] made a mistake, used bash 4.0 method, fails on 3.2. --- inxi | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/inxi b/inxi index 04a7c20..59ba562 100755 --- a/inxi +++ b/inxi @@ -815,8 +815,7 @@ main() initialize_data() { eval $LOGFS - BSD_VERSION=$( uname -s 2>/dev/null ) - BSD_VERSION=${BSD_VERSION,,} + BSD_VERSION=$( uname -s 2>/dev/null | tr '[A-Z]' '[a-z]' ) # note: archbsd says they are a freebsd distro, so assuming it's the same as freebsd if [[ -z ${BSD_VERSION/*bsd*/} ]];then # GNU/kfreebsd will by definition have GNU tools like sed/grep @@ -1541,10 +1540,9 @@ debug_data_collector() local completed_gz_file='' xiin_file='xiin.py' ftp_upload='ftp.techpatterns.com/incoming' local Line='-------------------------' local start_directory=$( pwd ) - local host=$HOSTNAME + local host=$( tr '[A-Z]' '[a-z]' <<< "$HOSTNAME" ) if [[ -n $host ]];then host=${host// /-} - host="-${host,,}" else host="-no-host" fi @@ -2872,7 +2870,7 @@ get_start_client() Irc_Client_Path=$( readlink /proc/$PPID/exe ) # Irc_Client_Path=$( ps -p $PPID | gawk '!/[[:space:]]*PID/ {print $5}' ) # echo $( ps -p $PPID ) - irc_client_path_lower=${Irc_Client_Path,,} + irc_client_path_lower=$( tr '[A-Z]' '[a-z]' <<< $Irc_Client_Path ) App_Working_Name=${irc_client_path_lower##*/} # handles the xchat/sh/bash/dash cases, and the konversation/perl cases, where clients # report themselves as perl or unknown shell. IE: when konversation starts inxi @@ -2884,7 +2882,7 @@ get_start_client() pppid="$( ps -p $PPID -o ppid --no-headers | sed 's/[[:space:]]//g' )" if [[ -n $pppid && -f /proc/$pppid/exe ]];then Irc_Client_Path="$( readlink /proc/$pppid/exe )" - irc_client_path_lower=${Irc_Client_Path,,} + irc_client_path_lower=$( tr '[A-Z]' '[a-z]' <<< $Irc_Client_Path ) App_Working_Name=${irc_client_path_lower##*/} B_Non_Native_App='true' fi @@ -10240,7 +10238,7 @@ print_module_version() if [[ -z $( grep -E '^snd' <<< $modules ) ]];then prefix='snd_' # sound modules start with snd_ fi - modules=${modules,,} + modules=$( tr '[A-Z]' '[a-z]' <<< "$modules" ) modules=${modules//-/_} # special intel processing, generally no version info though if [[ $modules == 'hda intel' ]];then