(change version)

Removed redundant line printing output for debugger > 5. Why this even existed is beyond me, it does nothing to help debug.
This commit is contained in:
inxi-svn 2009-03-17 01:53:02 +00:00
parent 3bfc7ec9cb
commit 1a42ad59f0

17
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.0.9
#### version: 1.0.10
#### Date: 16 March 2009
########################################################################
#### SPECIAL THANKS
@ -738,19 +738,26 @@ print_screen_output()
# the double quotes are needed to avoid losing whitespace in data when certain output types are used
local print_data="$( echo -e "$1" )"
# just using basic debugger stuff so you can tell which thing is printing out the data. This
# should help debug kde 4 konvi issues when that is released into sid, we'll see. Turning off
# the redundant debugger output which as far as I can tell does exactly nothing to help debugging.
if [[ $DEBUG -gt 5 ]];then
if [[ $KONVI -eq 1 ]];then
# konvi doesn't seem to like \n characters, it just prints them literally
print_data="$( tr '\n' ' ' <<< "$print_data" )"
dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "konvi='$KONVI' saying : '$print_data'"
# print_data="$( tr '\n' ' ' <<< "$print_data" )"
# dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "konvi='$KONVI' saying : '$print_data'"
print_data="KP-$KONVI: $print_data"
elif [[ $KONVI -eq 2 ]];then
echo "konvi='$KONVI' saying : '$print_data'"
# echo "konvi='$KONVI' saying : '$print_data'"
print_data="KP-$KONVI: $print_data"
else
echo "printing out: '$print_data'"
# echo "printing out: '$print_data'"
print_data="P: $print_data"
fi
fi
if [[ $KONVI -eq 1 ]];then
# konvi doesn't seem to like \n characters, it just prints them literally
print_data="$( tr '\n' ' ' <<< "$print_data" )"
dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "$print_data"
else