Minor change to FTLtest.sh

This commit is contained in:
DL6ER
2017-03-12 11:02:20 +01:00
parent bba85f3302
commit f667c3df92

View File

@@ -13,7 +13,7 @@ function GetFTLData {
exec 3<>/dev/tcp/localhost/"$(cat /var/run/pihole-FTL.port)"
# Test if connection is open
if { >&3; } 2> /dev/null; then
if { true >&3; } 2> /dev/null; then
# Send command to FTL
echo -e ">$1" >&3
echo -e ">quit" >&3