mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
trying quotes
This commit is contained in:
parent
cce69a384f
commit
f14431aecc
10
inxi
10
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.6.2-b1-t1
|
#### version: 0.6.2-b1-t2
|
||||||
#### 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
|
||||||
|
@ -333,20 +333,22 @@ script_debugger()
|
||||||
# for dcop to work, must use 'say' operator, AND colors must be evaluated by echo -e
|
# for dcop to work, must use 'say' operator, AND colors must be evaluated by echo -e
|
||||||
print_screen_output()
|
print_screen_output()
|
||||||
{
|
{
|
||||||
local print_data=$( echo -e "$1" )
|
local print_data="$( echo -e $1 )"
|
||||||
|
|
||||||
if [[ $DEBUG -gt 5 ]];then
|
if [[ $DEBUG -gt 5 ]];then
|
||||||
if [[ $KONVI -eq 1 ]];then
|
if [[ $KONVI -eq 1 ]];then
|
||||||
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
|
||||||
|
echo "konvi='$KONVI' saying : '$print_data'"
|
||||||
else
|
else
|
||||||
echo "konvi='$KONVI' saying : '$print_data'"
|
echo "printing out: '$print_data'"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $KONVI -eq 1 ]];then
|
if [[ $KONVI -eq 1 ]];then
|
||||||
dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "$print_data"
|
dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "$print_data"
|
||||||
else
|
else
|
||||||
echo -e "$print_data\n"
|
echo -ne "$print_data\n"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue