From 10f008bd2977b97db0a8f71b3d96b70452dafc4c Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 2 Jan 2014 01:12:21 +0100 Subject: [PATCH] fix getsupporteddevice script --- tests/getsupporteddevices.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/getsupporteddevices.sh b/tests/getsupporteddevices.sh index 7e2d9c34..c717ef5c 100755 --- a/tests/getsupporteddevices.sh +++ b/tests/getsupporteddevices.sh @@ -1,3 +1,7 @@ #!/bin/bash -(echo '{"id":1, "method":"Devices.GetSupportedDevices"}'; sleep 1) | nc 10.10.10.114 1234 +if [ -z $1 ]; then + echo "usage $0 host" +else + (echo '{"id":1, "method":"Devices.GetSupportedDevices"}'; sleep 1) | nc $1 1234 +fi