diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-05 19:58:38 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-05 19:58:38 +1200 |
commit | de14dd5bff472740633b2ad598fd532a67da9f50 (patch) | |
tree | 45e82c14dfc6cc91b357bbcbcf1e91989a5390ed | |
parent | 5d8646147ca232d3a55d572e345308c3da97542d (diff) | |
download | trackermap-server-de14dd5bff472740633b2ad598fd532a67da9f50.tar.gz trackermap-server-de14dd5bff472740633b2ad598fd532a67da9f50.tar.bz2 trackermap-server-de14dd5bff472740633b2ad598fd532a67da9f50.zip |
Update tools shell scripts
-rwxr-xr-x | tools/hex.sh | 2 | ||||
-rwxr-xr-x | tools/test.sh | 2 |
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 |