maybe final beta

This commit is contained in:
inxi-svn 2008-11-24 00:30:14 +00:00
parent c8e4cf23fd
commit bb44b53f72

6
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 0.6.2-b1-t3 #### version: 0.6.2-b1-t4
#### Date: November 22 2008 #### Date: November 22 2008
######################################################################## ########################################################################
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif #### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
@ -334,12 +334,12 @@ script_debugger()
# note: dcop does not seem able to handle \n so that's being stripped out and replaced with space. # note: dcop does not seem able to handle \n so that's being stripped out and replaced with space.
print_screen_output() print_screen_output()
{ {
#local print_data="$( echo -e "$1" )"
local print_data="$( echo -e "$1" )" no_new_line='' local print_data="$( echo -e "$1" )" no_new_line=''
if [[ $DEBUG -gt 5 ]];then if [[ $DEBUG -gt 5 ]];then
if [[ $KONVI -eq 1 ]];then if [[ $KONVI -eq 1 ]];then
# konvi doesn't seem to like \n characters, it just prints them
print_data="$( tr '\n' ' ' <<< "$print_data" )"
dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "konvi='$KONVI' saying : '$print_data'" dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "konvi='$KONVI' saying : '$print_data'"
elif [[ $KONVI -eq 2 ]];then elif [[ $KONVI -eq 2 ]];then
echo "konvi='$KONVI' saying : '$print_data'" echo "konvi='$KONVI' saying : '$print_data'"