summaryrefslogtreecommitdiff
path: root/herculeswrapper
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-17 01:19:04 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-17 01:19:04 +0300
commitf44f808f0bb6ea87c089bb2582916d305a4b372a (patch)
tree81f55038b046df82bb7043233661d8783ded8b1a /herculeswrapper
parent6e2bdbb10544669a8a0b312806384d242c54e3ba (diff)
downloadtools-f44f808f0bb6ea87c089bb2582916d305a4b372a.tar.gz
tools-f44f808f0bb6ea87c089bb2582916d305a4b372a.tar.bz2
tools-f44f808f0bb6ea87c089bb2582916d305a4b372a.tar.xz
tools-f44f808f0bb6ea87c089bb2582916d305a4b372a.zip
herculeswrapper: fix handling exit code 1.
It returned if error happened in server.
Diffstat (limited to 'herculeswrapper')
-rwxr-xr-xherculeswrapper/map.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/herculeswrapper/map.sh b/herculeswrapper/map.sh
index 1fcd1e3..18994e2 100755
--- a/herculeswrapper/map.sh
+++ b/herculeswrapper/map.sh
@@ -16,6 +16,10 @@ while [ 1 ] ; do
echo "Returned 0. Probably ctrl+c"
break
;;
+ 1)
+ echo "Returned 1. Probably error in server"
+ break
+ ;;
100)
echo "Terminating server"
send_all_pipes "exit"