From f14431aecc47fd5b47b5b92442ecdb0b0598ad32 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 24 Nov 2008 00:01:46 +0000 Subject: [PATCH] trying quotes --- inxi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index 0d9dd6d..6f9be58 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.6.2-b1-t1 +#### version: 0.6.2-b1-t2 #### Date: November 22 2008 ######################################################################## #### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif @@ -333,20 +333,22 @@ script_debugger() # for dcop to work, must use 'say' operator, AND colors must be evaluated by echo -e print_screen_output() { - local print_data=$( echo -e "$1" ) + local print_data="$( echo -e $1 )" if [[ $DEBUG -gt 5 ]];then if [[ $KONVI -eq 1 ]];then dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "konvi='$KONVI' saying : '$print_data'" + elif [[ $KONVI -eq 2 ]];then + echo "konvi='$KONVI' saying : '$print_data'" else - echo "konvi='$KONVI' saying : '$print_data'" + echo "printing out: '$print_data'" fi fi if [[ $KONVI -eq 1 ]];then dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "$print_data" else - echo -e "$print_data\n" + echo -ne "$print_data\n" fi }