aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-05 19:58:38 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-05 19:58:38 +1200
commitde14dd5bff472740633b2ad598fd532a67da9f50 (patch)
tree45e82c14dfc6cc91b357bbcbcf1e91989a5390ed
parent5d8646147ca232d3a55d572e345308c3da97542d (diff)
downloadtraccar-server-de14dd5bff472740633b2ad598fd532a67da9f50.tar.gz
traccar-server-de14dd5bff472740633b2ad598fd532a67da9f50.tar.bz2
traccar-server-de14dd5bff472740633b2ad598fd532a67da9f50.zip
Update tools shell scripts
-rwxr-xr-xtools/hex.sh2
-rwxr-xr-xtools/test.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/hex.sh b/tools/hex.sh
index cd880e13e..61558d12d 100755
--- a/tools/hex.sh
+++ b/tools/hex.sh
@@ -8,7 +8,7 @@
# hex.sh 5039 3e52505631393535352b343533383431382d303733393531383530303032303231323b49443d393939393b2a37423c0d0a
#
-if [[ $# -lt 2 ]]
+if [ $# -lt 2 ]
then
echo "USAGE: $0 <port> <hex>"
exit 1
diff --git a/tools/test.sh b/tools/test.sh
index 6ae1147ac..fe10b7199 100755
--- a/tools/test.sh
+++ b/tools/test.sh
@@ -19,7 +19,7 @@
test_protocol () {
echo -n -e $3 | nc localhost $1
- if [[ $? -ne 0 ]]
+ if [ $? -ne 0 ]
then
printf "%-4s %-15s FAIL\n" $1 $2
else