home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cc6c4a
)
Repaired buggy check for out file generation time in init shell script.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 5 Feb 2014 15:32:38 +0000
(16:32 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 5 Feb 2014 15:32:38 +0000
(16:32 +0100)
roguelike
patch
|
blob
|
history
diff --git
a/roguelike
b/roguelike
index dadab3cb2c776725c4b496a9e623115cb08d869a..ec72ca9481b56a1edf193548a4ee09431c5b99cd 100755
(executable)
--- a/
roguelike
+++ b/
roguelike
@@
-16,12
+16,17
@@
kill -0 $! 2> /dev/null
# Give server some time (max. 10 seconds) to generate its out file.
i=0
-while [ ! -e server/out ] && [ $i -le 1000
0
]
+while [ ! -e server/out ] && [ $i -le 1000 ]
do
sleep 0.01
i=`expr $i + 1`
done
-kill -0 $! 2> /dev/null
+if [ ! -e server/out ]
+then
+ echo "Server failed generating outfile within given time limit."
+ false
+fi
# Only start the interface when everything else went well.
+kill -0 $! 2> /dev/null
./roguelike-client